Do not display outgoing captioned images in group chats twice

This commit is contained in:
mjentsch 2015-09-14 22:03:36 +02:00
parent 32161b1558
commit 50367783db

View file

@ -747,8 +747,10 @@ static int tgprpl_send_chat (PurpleConnection * gc, int id, const char *message,
debug ("tgprpl_send_chat()");
connection_data *conn = purple_connection_get_protocol_data (gc);
int ret = tgp_msg_send (conn->TLS, message, TGL_MK_CHAT(id));
p2tgl_got_chat_in (conn->TLS, TGL_MK_CHAT(id), TGL_MK_USER(conn->TLS->our_id), message,
PURPLE_MESSAGE_RECV, time(NULL));
if (ret != 0) {
p2tgl_got_chat_in (conn->TLS, TGL_MK_CHAT(id), TGL_MK_USER(conn->TLS->our_id), message,
PURPLE_MESSAGE_RECV, time(NULL));
}
return ret;
}