mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added ability to invoke callback for non-primary window controllers.
This commit is contained in:
@@ -1466,7 +1466,8 @@ void SessionController::showPeerHistoryAtItem(
|
||||
not_null<const HistoryItem*> item) {
|
||||
_window->invokeForSessionController(
|
||||
&item->history()->peer->session().account(),
|
||||
[=](not_null<SessionController*> controller) {
|
||||
item->history()->peer,
|
||||
[&](not_null<SessionController*> controller) {
|
||||
if (item->isScheduled()) {
|
||||
controller->showSection(
|
||||
std::make_shared<HistoryView::ScheduledMemento>(
|
||||
|
||||
Reference in New Issue
Block a user