2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Don't mark as read when forwarding to scheduled.

This commit is contained in:
John Preston
2021-09-16 10:50:15 +03:00
parent 3e681e5449
commit 73c0ea4b7d
2 changed files with 4 additions and 3 deletions

View File

@@ -3653,8 +3653,9 @@ void ApiWrap::forwardMessages(
const auto history = action.history;
const auto peer = history->peer;
histories.readInbox(history);
if (!action.options.scheduled) {
histories.readInbox(history);
}
const auto anonymousPost = peer->amAnonymous();
const auto silentPost = ShouldSendSilent(peer, action.options);