mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix opening forums from recent peers.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user