Fix opening forums from recent peers.

This commit is contained in:
John Preston 2024-04-15 14:48:44 +04:00
parent 0180fe9468
commit 360366ba9e
1 changed files with 4 additions and 5 deletions

View File

@ -1153,11 +1153,10 @@ void Widget::updateSuggestions(anim::type animated) {
_suggestions->topPeerChosen(),
_suggestions->recentPeerChosen()
) | rpl::start_with_next([=](not_null<PeerData*> peer) {
if (base::IsCtrlPressed()) {
controller()->showInNewWindow(peer);
} else {
controller()->showPeerHistory(peer);
}
chosenRow({
.key = peer->owner().history(peer),
.newWindow = base::IsCtrlPressed(),
});
}, _suggestions->lifetime());
updateControlsGeometry();