diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-23 19:05:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-23 19:05:51 +0300 |
commit | 60fec7a89a7870d52ebd76315193b105973b1219 (patch) | |
tree | 8df3b928516934d478367791bf5b8d2f4b92a930 /protocols/Sametime/src | |
parent | 14b6b214743b1913258fc03c21f5e0841a66c2fd (diff) |
fixes #4104 (Удаление серверной истории)
Diffstat (limited to 'protocols/Sametime/src')
-rw-r--r-- | protocols/Sametime/src/sametime.cpp | 4 | ||||
-rw-r--r-- | protocols/Sametime/src/sametime_proto.h | 2 |
2 files changed, 3 insertions, 3 deletions
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<CSametimeProto> 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);
|