diff options
author | George Hazan <george.hazan@gmail.com> | 2024-02-29 12:49:27 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-02-29 12:49:27 +0300 |
commit | 20527de0842736562241540bb90669b4135e966a (patch) | |
tree | 37efcd1bc102a3aed383d6206da3f080144f4fc5 /protocols | |
parent | ff846551819603c954165dff4d42c1ec21b2cb9f (diff) |
fixes #4251 (Telegram: форвард чужого сообщения показывается от неизвестного контакта)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 51da845681..f9b9b9f760 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -791,6 +791,10 @@ void CTelegramProto::ProcessMessage(const TD::message *pMessage) if (auto *p = FindChat(((TD::messageForwardOriginChat *)pForward->origin_.get())->sender_chat_id_))
wszNick = p->getDisplayName();
break;
+ case TD::messageForwardOriginHiddenUser::ID:
+ if (auto *p = (TD::messageForwardOriginHiddenUser *)pForward->origin_.get())
+ wszNick = Utf2T(p->sender_name_.c_str());
+ break;
case TD::messageForwardOriginChannel::ID:
if (auto *p = FindChat(((TD::messageForwardOriginChannel *)pForward->origin_.get())->chat_id_))
wszNick = p->getDisplayName();
|