Fix secret chats not being properly canceled

This commit is contained in:
mjentsch 2015-12-19 02:23:59 +01:00
parent 00bf713c43
commit 65c96cae5a
2 changed files with 2 additions and 5 deletions

View file

@ -758,10 +758,7 @@ static void tgprpl_remove_buddy (PurpleConnection *gc, PurpleBuddy *buddy, Purpl
tgl_peer_t *peer = tgp_blist_buddy_get_peer (buddy);
if (peer) {
if (tgl_get_peer_type (peer->id) == TGL_PEER_ENCR_CHAT) {
/* TODO: implement the api call cancel secret chats. Currently the chat will only be marked as
deleted on our side so that it won't be added on startup
(when the secret chat file is loaded) */
bl_do_peer_delete (gc_get_tls (gc), peer->encr_chat.id);
tgl_do_discard_secret_chat (gc_get_tls (gc), &peer->encr_chat, NULL, NULL);
}
}
}

2
tgl

@ -1 +1 @@
Subproject commit 5e64581b3ab7a49a5d790d561a9ea4beac651637
Subproject commit 3a4c0c0ea3c9ccfd1c89d0ab0ffa599c6a3b558e