2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Show comments unread status.

This commit is contained in:
John Preston
2020-09-15 11:39:39 +03:00
parent 040f29abe6
commit 59abe95754
9 changed files with 155 additions and 63 deletions

View File

@@ -147,9 +147,12 @@ void SessionNavigation::showRepliesForMessage(
const auto post = _session->data().message(channelId, rootId);
if (post) {
post->setCommentsItemId(item->fullId());
}
if (const auto readTill = data.vread_max_id()) {
item->setRepliesReadTill(readTill->v);
if (const auto maxId = data.vmax_id()) {
post->setCommentsMaxId(maxId->v);
}
if (const auto readTill = data.vread_max_id()) {
post->setCommentsReadTill(readTill->v);
}
}
showSection(
HistoryView::RepliesMemento(item));