mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix local display of sent-as from anonymous admin.
This commit is contained in:
parent
8c824edaa5
commit
17ffebb684
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ void InnerFillMessagePostFlags(
|
||||||
not_null<PeerData*> peer,
|
not_null<PeerData*> peer,
|
||||||
MessageFlags &flags) {
|
MessageFlags &flags) {
|
||||||
const auto anonymousPost = peer->amAnonymous();
|
const auto anonymousPost = peer->amAnonymous();
|
||||||
if (!anonymousPost) {
|
if (!anonymousPost || options.sendAs) {
|
||||||
flags |= MessageFlag::HasFromId;
|
flags |= MessageFlag::HasFromId;
|
||||||
return;
|
return;
|
||||||
} else if (peer->asMegagroup()) {
|
} else if (peer->asMegagroup()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue