summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-23 19:05:51 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-23 19:05:51 +0300
commit60fec7a89a7870d52ebd76315193b105973b1219 (patch)
tree8df3b928516934d478367791bf5b8d2f4b92a930 /protocols/Telegram/src
parent14b6b214743b1913258fc03c21f5e0841a66c2fd (diff)
fixes #4104 (Удаление серверной истории)
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r--protocols/Telegram/src/proto.cpp2
-rw-r--r--protocols/Telegram/src/proto.h2
-rw-r--r--protocols/Telegram/src/server.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 30b096813b..48bb212951 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -116,7 +116,7 @@ void CTelegramProto::OnContactAdded(MCONTACT hContact)
}
}
-bool CTelegramProto::OnContactDeleted(MCONTACT hContact)
+bool CTelegramProto::OnContactDeleted(MCONTACT hContact, uint32_t)
{
TD::int53 id = GetId(hContact);
if (id == 0)
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h
index a963e17119..62b23d2f8e 100644
--- a/protocols/Telegram/src/proto.h
+++ b/protocols/Telegram/src/proto.h
@@ -367,7 +367,7 @@ public:
void OnBuildProtoMenu() override;
void OnContactAdded(MCONTACT hContact) override;
- bool OnContactDeleted(MCONTACT hContact) override;
+ bool OnContactDeleted(MCONTACT hContact, uint32_t flags) override;
MWindow OnCreateAccMgrUI(MWindow hwndParent) override;
void OnErase() override;
void OnEventDeleted(MCONTACT, MEVENT) override;
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 52dc634705..7a59341212 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -548,7 +548,7 @@ void CTelegramProto::ProcessChatLastMessage(TD::updateChatLastMessage *pObj)
if (Contact::OnList(pUser->hContact))
CallService(MS_HISTORY_EMPTY, pUser->hContact, TRUE);
else
- db_delete_contact(pUser->hContact, true);
+ db_delete_contact(pUser->hContact, CDF_FROM_SERVER);
}
}