From 60fec7a89a7870d52ebd76315193b105973b1219 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 23 Jan 2024 19:05:51 +0300 Subject: =?UTF-8?q?fixes=20#4104=20(=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=BD=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Sametime/src/sametime.cpp | 4 ++-- protocols/Sametime/src/sametime_proto.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Sametime/src') diff --git a/protocols/Sametime/src/sametime.cpp b/protocols/Sametime/src/sametime.cpp index bb247ccdaa..27fa124bb6 100644 --- a/protocols/Sametime/src/sametime.cpp +++ b/protocols/Sametime/src/sametime.cpp @@ -128,7 +128,7 @@ void CSametimeProto::OnShutdown() LogOut(); } -bool CSametimeProto::OnContactDeleted(MCONTACT hContact) +bool CSametimeProto::OnContactDeleted(MCONTACT hContact, uint32_t) { ContactDeleted(hContact); ChatDeleted(hContact); @@ -141,7 +141,7 @@ void CSametimeProto::SetAllOffline() for (auto &hContact : AccContacts()) { if (Contact::IsGroupChat(hContact, m_szModuleName)) { - db_delete_contact(hContact, true); + db_delete_contact(hContact, CDF_FROM_SERVER); continue; } diff --git a/protocols/Sametime/src/sametime_proto.h b/protocols/Sametime/src/sametime_proto.h index 159dfa36e8..44f6bcd3a8 100644 --- a/protocols/Sametime/src/sametime_proto.h +++ b/protocols/Sametime/src/sametime_proto.h @@ -38,7 +38,7 @@ struct CSametimeProto : public PROTO int UserIsTyping(MCONTACT hContact, int type) override; void OnShutdown() override; - bool OnContactDeleted(MCONTACT hContact) override; + bool OnContactDeleted(MCONTACT hContact, uint32_t flags) override; // sametime.cpp INT_PTR __cdecl GetName(WPARAM wParam, LPARAM lParam); -- cgit v1.2.3