This commit is contained in:
mjentsch 2015-10-17 00:00:25 +02:00
parent 5f2da4b4fc
commit 5c76324b78
2 changed files with 1 additions and 3 deletions

View file

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

View file

@ -142,7 +142,6 @@ GHashTable *tgprpl_chat_info_defaults (PurpleConnection *gc, const char *chat_na
debug ("tgprpl_chat_info_defaults()");
connection_data *conn = purple_connection_get_protocol_data (gc);
if (chat_name) {
tgl_peer_t *P = tgl_peer_get_by_name (conn->TLS, chat_name);
if (P) {