summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-09 20:11:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-09 20:11:34 +0300
commitd8542c7abec0675f98aa2b2668e3ed26dbd5408e (patch)
treeeccf1a033d7af703dfa289305ab3ed92e66a35e3 /protocols
parent3561655fab4f3c17882a5095b09b5eaebe3175d7 (diff)
fixes #3407 (Telegram: в переписке с добавленными контактами я <undef>)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/server.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 0412b0ed0f..7cada3e34c 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -569,8 +569,7 @@ void CTelegramProto::ProcessUser(TD::updateUser *pObj)
m_arChats.insert(pMe);
}
}
-
- if (!pUser->is_contact_) {
+ else if (!pUser->is_contact_) {
auto *pu = AddFakeUser(pUser->id_, false);
if (pu->hContact != INVALID_CONTACT_ID)
Contact::RemoveFromList(pu->hContact);