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()) {