mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Don't open unread topic on full forum row click.
This commit is contained in:
parent
76837c6f44
commit
f324017299
1 changed files with 5 additions and 2 deletions
|
@ -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(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue