From 08f3a6fb408469e62f38db7e2dab867d26286ad4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 30 Aug 2024 11:44:25 +0400 Subject: [PATCH] Fix local group sent-as display. --- Telegram/SourceFiles/api/api_sending.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index 8655619c0a..fd324adf79 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -44,7 +44,10 @@ void InnerFillMessagePostFlags( if (ShouldSendSilent(peer, options)) { flags |= MessageFlag::Silent; } - if (!peer->amAnonymous()) { + if (!peer->amAnonymous() + || (!peer->isBroadcast() + && options.sendAs + && options.sendAs != peer)) { flags |= MessageFlag::HasFromId; } const auto channel = peer->asBroadcast();