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

Add root message display in replies section.

This commit is contained in:
John Preston
2020-09-04 14:07:40 +04:00
parent d42ce87c09
commit beb623bee2
3 changed files with 92 additions and 15 deletions

View File

@@ -105,9 +105,7 @@ void SessionNavigation::showRepliesForMessage(
const auto channelId = history->channelId();
const auto item = _session->data().message(channelId, rootId);
if (!item || !item->repliesAreComments()) {
if (item->repliesCount() > 0) {
showSection(HistoryView::RepliesMemento(history, rootId));
}
showSection(HistoryView::RepliesMemento(history, rootId));
return;
} else if (const auto id = item->commentsItemId()) {
if (const auto item = _session->data().message(id)) {