mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-27 05:39:10 +00:00
Fixed local flag for silent out messages.
This commit is contained in:
parent
4274f9d3f3
commit
233c6b18ed
@ -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…
Reference in New Issue
Block a user