From 9f3e29551b636902d5a224c6ef4cc8aba6526810 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Oct 2024 13:13:25 +0300 Subject: Telegram: if user removed his nick, then don't store it anymore --- protocols/Telegram/src/server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 681a4344be..1f5c204abe 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -1225,6 +1225,8 @@ void CTelegramProto::ProcessUser(TD::updateUser *pObj) if (pUser->usernames_) UpdateString(pu->hContact, "Nick", pUser->usernames_->editable_username_); + else + delSetting(pu->hContact, "Nick"); Contact::PutOnList(pu->hContact); -- cgit v1.2.3