Add IV footer.

This commit is contained in:
John Preston
2024-04-26 19:20:43 +04:00
parent a272807a99
commit 7addcf2d25
8 changed files with 93 additions and 20 deletions
+12 -3
View File
@@ -742,9 +742,7 @@ void Instance::show(
not_null<Data*> data,
QString hash) {
const auto guard = gsl::finally([&] {
if (data->partial()) {
requestFull(session, data->id());
}
requestFull(session, data->id());
});
if (_shown && _shownSession == session) {
_shown->moveTo(data, hash);
@@ -834,6 +832,17 @@ void Instance::show(
UrlClickHandler::Open(event.url);
}).send();
break;
case Type::Report:
if (const auto controller = _shownSession->tryResolveWindow()) {
controller->window().activate();
controller->showPeerByLink(Window::PeerByLinkInfo{
.usernameOrId = "previews",
.resolveType = Window::ResolveType::BotStart,
.startToken = ("webpage"
+ QString::number(event.context.toULongLong())),
});
}
break;
}
}, _shown->lifetime());