summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-27 16:15:53 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-27 16:15:53 +0300
commit09695993c1a6fe40eb22b3caceffab8e8b71e349 (patch)
tree006202be6a725c56de289afc2d99eb9333a3dfa4 /protocols/Telegram
parent669cb4d3fe1b4d114c072924f6983d229dcb826e (diff)
Telegram: fix for wrong (last_message_ == null) processing
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/server.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 7c4b045042..9136b4c11d 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -553,15 +553,6 @@ void CTelegramProto::ProcessChatLastMessage(TD::updateChatLastMessage *pObj)
debugLogA("Last message for a temporary contact, skipping");
return;
}
-
- // according to #3406 we wipe history for the contacts from contacts' list
- // but remove the contact itself if it's a temporary one
- if (pObj->last_message_ == nullptr) {
- if (Contact::OnList(pUser->hContact))
- CallService(MS_HISTORY_EMPTY, pUser->hContact, TRUE);
- else
- db_delete_contact(pUser->hContact, CDF_FROM_SERVER);
- }
}
void CTelegramProto::ProcessChatNotification(TD::updateChatNotificationSettings *pObj)