From dbc48cc0ec4df774c257d5175d62bce16e2437e3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 9 Dec 2023 20:00:47 +0300 Subject: PROTO_INTERFACE::OnContactDeleted to be able to block the contact's deletion --- protocols/Sametime/src/sametime.cpp | 3 ++- protocols/Sametime/src/sametime_proto.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols/Sametime') diff --git a/protocols/Sametime/src/sametime.cpp b/protocols/Sametime/src/sametime.cpp index 238f559d6b..bb247ccdaa 100644 --- a/protocols/Sametime/src/sametime.cpp +++ b/protocols/Sametime/src/sametime.cpp @@ -128,10 +128,11 @@ void CSametimeProto::OnShutdown() LogOut(); } -void CSametimeProto::OnContactDeleted(MCONTACT hContact) +bool CSametimeProto::OnContactDeleted(MCONTACT hContact) { ContactDeleted(hContact); ChatDeleted(hContact); + return true; } void CSametimeProto::SetAllOffline() diff --git a/protocols/Sametime/src/sametime_proto.h b/protocols/Sametime/src/sametime_proto.h index 53251ff531..6c3bd27e9e 100644 --- a/protocols/Sametime/src/sametime_proto.h +++ b/protocols/Sametime/src/sametime_proto.h @@ -39,7 +39,7 @@ struct CSametimeProto : public PROTO int UserIsTyping(MCONTACT hContact, int type) override; void OnShutdown() override; - void OnContactDeleted(MCONTACT hContact) override; + bool OnContactDeleted(MCONTACT hContact) override; // sametime.cpp INT_PTR __cdecl GetName(WPARAM wParam, LPARAM lParam); -- cgit v1.2.3