Fix story links opening viewer in the background.

This commit is contained in:
John Preston 2023-08-11 17:48:38 +02:00
parent de4152496f
commit 027e662478
1 changed files with 1 additions and 1 deletions

View File

@ -412,6 +412,7 @@ bool ResolveUsernameOrPhone(
}
const auto myContext = context.value<ClickHandlerContext>();
using Navigation = Window::SessionNavigation;
controller->window().activate();
controller->showPeerByLink(Navigation::PeerByLinkInfo{
.usernameOrId = domain,
.phone = phone,
@ -447,7 +448,6 @@ bool ResolveUsernameOrPhone(
: std::nullopt),
.clickFromMessageId = myContext.itemId,
});
controller->window().activate();
return true;
}