diff options
author | John Preston <johnprestonmail@gmail.com> | 2024-01-02 15:03:23 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2024-01-02 15:05:06 +0400 |
commit | c8dd94601b1984df86e3a47b11f4d75498408cea (patch) | |
tree | 00e9f25ae219d93113f01c04dfb2d5e25ad7cf2d | |
parent | 382dab4ecbfb14d7664050d70dbd8d10b49e5790 (diff) |
Don't add original name in forward of reply.
-rw-r--r-- | Telegram/SourceFiles/history/view/history_view_reply.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Telegram/SourceFiles/history/view/history_view_reply.cpp b/Telegram/SourceFiles/history/view/history_view_reply.cpp index 1c78094d64..527654d9ad 100644 --- a/Telegram/SourceFiles/history/view/history_view_reply.cpp +++ b/Telegram/SourceFiles/history/view/history_view_reply.cpp @@ -430,8 +430,9 @@ void Reply::updateName( const auto originalNameAdded = !displayAsExternal && forwarded && !message->isDiscussionPost() - && (!message->showForwardsFromSender(forwarded) - || forwarded->forwardOfForward()); + && (forwarded->forwardOfForward() + || (!message->showForwardsFromSender(forwarded) + && !view->data()->Has<HistoryMessageForwarded>())); const auto shorten = !viaBotUsername.isEmpty() || groupNameAdded || originalNameAdded; |