2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Don't mark as read when scheduling messages.

This commit is contained in:
John Preston
2020-07-23 17:46:52 +04:00
parent 79e6369e27
commit d4feb16378
4 changed files with 26 additions and 13 deletions

View File

@@ -525,9 +525,13 @@ void SendConfirmedFile(
}
session->data().sendHistoryChangeNotifications();
session->changes().historyUpdated(
history,
Data::HistoryUpdate::Flag::MessageSent);
if (!itemToEdit) {
session->changes().historyUpdated(
history,
(action.options.scheduled
? Data::HistoryUpdate::Flag::ScheduledSent
: Data::HistoryUpdate::Flag::MessageSent));
}
}
} // namespace Api