diff --git a/telegram-purple.c b/telegram-purple.c index a0c983f..275e157 100644 --- a/telegram-purple.c +++ b/telegram-purple.c @@ -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); } } } diff --git a/tgl b/tgl index 5e64581..3a4c0c0 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit 5e64581b3ab7a49a5d790d561a9ea4beac651637 +Subproject commit 3a4c0c0ea3c9ccfd1c89d0ab0ffa599c6a3b558e