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

Track and display unread count in discussions.

This commit is contained in:
John Preston
2021-08-30 18:37:09 +03:00
parent 85e4c8527b
commit c39024c7fd
12 changed files with 271 additions and 45 deletions

View File

@@ -399,7 +399,8 @@ void SessionNavigation::showRepliesForMessage(
item->setRepliesMaxId(maxId->v);
}
item->setRepliesInboxReadTill(
data.vread_inbox_max_id().value_or_empty());
data.vread_inbox_max_id().value_or_empty(),
data.vunread_count().v);
item->setRepliesOutboxReadTill(
data.vread_outbox_max_id().value_or_empty());
const auto post = _session->data().message(channelId, rootId);
@@ -409,7 +410,8 @@ void SessionNavigation::showRepliesForMessage(
post->setRepliesMaxId(maxId->v);
}
post->setRepliesInboxReadTill(
data.vread_inbox_max_id().value_or_empty());
data.vread_inbox_max_id().value_or_empty(),
data.vunread_count().v);
post->setRepliesOutboxReadTill(
data.vread_outbox_max_id().value_or_empty());
}