From 17ffebb684d89b1a2af07cc28aa5848477738e33 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 9 Nov 2021 21:24:45 +0400 Subject: [PATCH] Fix local display of sent-as from anonymous admin. --- Telegram/SourceFiles/api/api_sending.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index bb7973423..19f0cf03a 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -41,7 +41,7 @@ void InnerFillMessagePostFlags( not_null peer, MessageFlags &flags) { const auto anonymousPost = peer->amAnonymous(); - if (!anonymousPost) { + if (!anonymousPost || options.sendAs) { flags |= MessageFlag::HasFromId; return; } else if (peer->asMegagroup()) {