Fix sending-when-online for already-online user.

This commit is contained in:
John Preston 2023-04-22 22:33:51 +04:00
parent e285b22398
commit a25005483a
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ void ScheduledMessages::sendNowSimpleMessage(
auto action = Api::SendAction(history);
action.replyTo = local->replyToId();
const auto replyHeader = NewMessageReplyHeader(action);
const auto localFlags = NewMessageFlags(history->peer);
const auto localFlags = NewMessageFlags(history->peer)
& ~MessageFlag::BeingSent;
const auto flags = MTPDmessage::Flag::f_entities
| MTPDmessage::Flag::f_from_id
| (local->replyToId()