diff --git a/telegram-adium/AdiumTelegramAccount.m b/telegram-adium/AdiumTelegramAccount.m index 0843d26..1e84d01 100644 --- a/telegram-adium/AdiumTelegramAccount.m +++ b/telegram-adium/AdiumTelegramAccount.m @@ -29,6 +29,11 @@ return @"149.154.167.50"; } +- (BOOL)shouldDisplayOutgoingMUCMessages +{ + return NO; +} + - (int)port { return 443; diff --git a/telegram-purple.c b/telegram-purple.c index e987765..d814125 100755 --- a/telegram-purple.c +++ b/telegram-purple.c @@ -975,15 +975,9 @@ static int tgprpl_send_chat (PurpleConnection * gc, int id, const char *message, debug ("tgprpl_send_chat()\n"); connection_data *conn = purple_connection_get_protocol_data (gc); tgl_do_send_unescape_message (conn->TLS, message, TGL_MK_CHAT(id)); - - /* Pidgin won't display the written message if we don't call this, Adium will display it twice - if we call it, so we don't do it for the adium Plugin. - TODO: there has to be a better way to do this, figure out how. - */ -#ifndef __ADIUM_ + p2tgl_got_chat_in(conn->TLS, TGL_MK_CHAT(id), TGL_MK_USER(conn->TLS->our_id), message, PURPLE_MESSAGE_RECV, time(NULL)); -#endif return 1; }