Added ability to open recent peers in window with middle button.

This commit is contained in:
23rd 2025-01-07 23:37:50 +03:00
parent ce4a081155
commit b7162b5fad

View file

@ -416,6 +416,7 @@ public:
}
void rowClicked(not_null<PeerListRow*> row) override;
void rowMiddleClicked(not_null<PeerListRow*> row) override;
bool rowTrackPress(not_null<PeerListRow*> row) override;
void rowTrackPressCancel() override;
bool rowTrackPressSkipMouseSelection() override;
@ -673,6 +674,11 @@ void Suggestions::ObjectListController::rowClicked(
_chosen.fire(row->peer());
}
void Suggestions::ObjectListController::rowMiddleClicked(
not_null<PeerListRow*> row) {
window()->showInNewWindow(row->peer());
}
void Suggestions::ObjectListController::setupPlainDivider(
rpl::producer<QString> title) {
auto result = object_ptr<Ui::FixedHeightWidget>(