mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix story links opening viewer in the background.
This commit is contained in:
parent
de4152496f
commit
027e662478
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue