mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix opening forums from recent peers.
This commit is contained in:
parent
0180fe9468
commit
360366ba9e
1 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue