mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix story links opening viewer in the background.
This commit is contained in:
@@ -412,6 +412,7 @@ bool ResolveUsernameOrPhone(
|
|||||||
}
|
}
|
||||||
const auto myContext = context.value<ClickHandlerContext>();
|
const auto myContext = context.value<ClickHandlerContext>();
|
||||||
using Navigation = Window::SessionNavigation;
|
using Navigation = Window::SessionNavigation;
|
||||||
|
controller->window().activate();
|
||||||
controller->showPeerByLink(Navigation::PeerByLinkInfo{
|
controller->showPeerByLink(Navigation::PeerByLinkInfo{
|
||||||
.usernameOrId = domain,
|
.usernameOrId = domain,
|
||||||
.phone = phone,
|
.phone = phone,
|
||||||
@@ -447,7 +448,6 @@ bool ResolveUsernameOrPhone(
|
|||||||
: std::nullopt),
|
: std::nullopt),
|
||||||
.clickFromMessageId = myContext.itemId,
|
.clickFromMessageId = myContext.itemId,
|
||||||
});
|
});
|
||||||
controller->window().activate();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user