From ef0ba268b340eaf1217a96d763342c25668588b4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Feb 2023 12:54:20 +0300 Subject: Protocols: preventing recursive contact deletion --- protocols/Gadu-Gadu/src/groupchat.cpp | 2 +- protocols/Gadu-Gadu/src/services.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/src/groupchat.cpp b/protocols/Gadu-Gadu/src/groupchat.cpp index 39bd3a0b98..cb2ca4684a 100644 --- a/protocols/Gadu-Gadu/src/groupchat.cpp +++ b/protocols/Gadu-Gadu/src/groupchat.cpp @@ -126,7 +126,7 @@ int GaduProto::gc_event(WPARAM, LPARAM lParam) list_remove(&chats, chat, 1); // Remove contact from contact list (duh!) should be done by chat.dll !! - db_delete_contact(gch->si->hContact); + db_delete_contact(gch->si->hContact, true); return 1; } diff --git a/protocols/Gadu-Gadu/src/services.cpp b/protocols/Gadu-Gadu/src/services.cpp index 9b08f19823..15c7e14096 100644 --- a/protocols/Gadu-Gadu/src/services.cpp +++ b/protocols/Gadu-Gadu/src/services.cpp @@ -387,7 +387,7 @@ INT_PTR GaduProto::get_acc_mgr_gui(WPARAM, LPARAM lParam) INT_PTR GaduProto::leavechat(WPARAM hContact, LPARAM) { if (hContact) - db_delete_contact(hContact); + db_delete_contact(hContact, true); return 0; } -- cgit v1.2.3