mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed local flag for silent out messages.
This commit is contained in:
parent
4274f9d3f3
commit
233c6b18ed
1 changed files with 3 additions and 3 deletions
|
@ -42,6 +42,9 @@ 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 (ShouldSendSilent(peer, options)) {
|
||||||
|
flags |= MessageFlag::Silent;
|
||||||
|
}
|
||||||
if (!anonymousPost || options.sendAs) {
|
if (!anonymousPost || options.sendAs) {
|
||||||
flags |= MessageFlag::HasFromId;
|
flags |= MessageFlag::HasFromId;
|
||||||
return;
|
return;
|
||||||
|
@ -401,9 +404,6 @@ void SendConfirmedFile(
|
||||||
const auto anonymousPost = peer->amAnonymous();
|
const auto anonymousPost = peer->amAnonymous();
|
||||||
const auto silentPost = ShouldSendSilent(peer, file->to.options);
|
const auto silentPost = ShouldSendSilent(peer, file->to.options);
|
||||||
FillMessagePostFlags(action, peer, flags);
|
FillMessagePostFlags(action, peer, flags);
|
||||||
if (silentPost) {
|
|
||||||
flags |= MessageFlag::Silent;
|
|
||||||
}
|
|
||||||
if (file->to.options.scheduled) {
|
if (file->to.options.scheduled) {
|
||||||
flags |= MessageFlag::IsOrWasScheduled;
|
flags |= MessageFlag::IsOrWasScheduled;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue