Don't open unread topic on full forum row click.
This commit is contained in:
parent
76837c6f44
commit
f324017299
|
@ -3281,10 +3281,13 @@ bool InnerWidget::chooseRow(
|
||||||
};
|
};
|
||||||
} else if (!_controller->adaptive().isOneColumn()) {
|
} else if (!_controller->adaptive().isOneColumn()) {
|
||||||
const auto &recent = forum->recentTopics();
|
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 = {
|
chosen.message.fullId = {
|
||||||
history->peer->id,
|
history->peer->id,
|
||||||
recent.front()->rootId(),
|
topic->rootId(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue