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
1 changed files with 4 additions and 4 deletions

View File

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