Fix group-message sending in Adium
This commit is contained in:
parent
9d61f6815b
commit
4a4179d262
1 changed files with 7 additions and 1 deletions
|
@ -805,8 +805,14 @@ static int tgprpl_send_chat (PurpleConnection * gc, int id, const char *message,
|
|||
tgl_do_send_message (conn->TLS, TGL_MK_CHAT(id), raw, (int)strlen (raw), 0, 0);
|
||||
g_free (raw);
|
||||
|
||||
/* 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));
|
||||
PURPLE_MESSAGE_RECV, time(NULL));
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue