Fixed jumping to message from composed search.

This commit is contained in:
23rd 2022-10-30 08:18:36 +03:00 committed by John Preston
parent 290e8bb449
commit ed356a1fc5

View file

@ -753,10 +753,10 @@ ComposeSearch::Inner::Inner(
const auto goToMessage = [=](const FullMsgId &itemId) { const auto goToMessage = [=](const FullMsgId &itemId) {
const auto item = _history->owner().message(itemId); const auto item = _history->owner().message(itemId);
if (item) { if (item) {
_window->jumpToChatListEntry({ _window->showPeerHistory(
{ item->history() }, item->history()->peer->id,
item->fullId(), ::Window::SectionShow::Way::ClearStack,
}); item->fullId().msg);
} }
}; };