Don't add original name in forward of reply.

This commit is contained in:
John Preston 2024-01-02 15:03:23 +04:00
parent 382dab4ecb
commit c8dd94601b
1 changed files with 3 additions and 2 deletions

View File

@ -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;