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

Fix marking scheduled out messages as read.

This commit is contained in:
John Preston
2020-03-25 13:08:08 +04:00
parent 4c7f8a4bbb
commit 36d3dcd6d8
2 changed files with 5 additions and 2 deletions

View File

@@ -1648,7 +1648,8 @@ std::optional<int> History::countStillUnreadLocal(MsgId readTillId) const {
for (const auto &block : blocks) {
for (const auto &message : block->messages) {
const auto item = message->data();
if (item->out() || !IsServerMsgId(item->id)) {
if (!IsServerMsgId(item->id)
|| (item->out() && !item->isFromScheduled())) {
continue;
} else if (item->id > readTillId) {
break;