mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fix local group sent-as display.
This commit is contained in:
parent
8823d5256f
commit
08f3a6fb40
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue