mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Add IV footer.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user