2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 00:15:42 +00:00

Add read status tracking to comments.

This commit is contained in:
John Preston
2020-09-08 14:19:44 +03:00
parent 78d83a2c69
commit b8424b1d89
11 changed files with 182 additions and 11 deletions

View File

@@ -110,7 +110,7 @@ void SessionNavigation::showRepliesForMessage(
} else if (const auto id = item->commentsItemId()) {
if (const auto item = _session->data().message(id)) {
showSection(
HistoryView::RepliesMemento(item->history(), item->id));
HistoryView::RepliesMemento(item));
return;
}
}
@@ -148,8 +148,11 @@ void SessionNavigation::showRepliesForMessage(
if (post) {
post->setCommentsItemId(item->fullId());
}
if (const auto readTill = data.vread_max_id()) {
item->setRepliesReadTill(readTill->v);
}
showSection(
HistoryView::RepliesMemento(item->history(), item->id));
HistoryView::RepliesMemento(item));
}
});
}).fail([=](const RPCError &error) {