2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Check some more App::main()s.

This commit is contained in:
John Preston
2020-06-11 20:33:15 +04:00
parent 0ad7dcaef9
commit b0f9ad71dd
15 changed files with 91 additions and 57 deletions

View File

@@ -302,10 +302,14 @@ void BoxController::refreshAbout() {
}
void BoxController::rowClicked(not_null<PeerListRow*> row) {
auto itemsRow = static_cast<Row*>(row.get());
auto itemId = itemsRow->maxItemId();
InvokeQueued(App::main(), [peerId = row->peer()->id, itemId] {
Ui::showPeerHistory(peerId, itemId);
const auto itemsRow = static_cast<Row*>(row.get());
const auto itemId = itemsRow->maxItemId();
const auto window = _window;
crl::on_main(window, [=, peer = row->peer()] {
window->showPeerHistory(
peer,
Window::SectionShow::Way::ClearStack,
itemId);
});
}