mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Show comments unread status.
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user