2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Fix local display of sent-as from anonymous admin.

This commit is contained in:
John Preston
2021-11-09 21:24:45 +04:00
parent 8c824edaa5
commit 17ffebb684

View File

@@ -41,7 +41,7 @@ void InnerFillMessagePostFlags(
not_null<PeerData*> peer,
MessageFlags &flags) {
const auto anonymousPost = peer->amAnonymous();
if (!anonymousPost) {
if (!anonymousPost || options.sendAs) {
flags |= MessageFlag::HasFromId;
return;
} else if (peer->asMegagroup()) {