2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 14:08:41 +00:00

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

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;
}