Don't open unread topic on full forum row click.

This commit is contained in:
John Preston 2022-11-30 13:01:54 +04:00
parent 76837c6f44
commit f324017299
1 changed files with 5 additions and 2 deletions

View File

@ -3281,10 +3281,13 @@ bool InnerWidget::chooseRow(
};
} else if (!_controller->adaptive().isOneColumn()) {
const auto &recent = forum->recentTopics();
if (!recent.empty()) {
const auto topic = recent.empty()
? nullptr
: recent.front().get();
if (topic && !topic->chatListBadgesState().unread) {
chosen.message.fullId = {
history->peer->id,
recent.front()->rootId(),
topic->rootId(),
};
}
}