2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Replaced DocumentOpenClickHandler.

This commit is contained in:
23rd
2021-06-17 00:33:51 +03:00
committed by John Preston
parent 8591d58798
commit 1f816c249b
12 changed files with 31 additions and 35 deletions

View File

@@ -1238,7 +1238,6 @@ void SessionController::openDocument(
not_null<DocumentData*> document,
FullMsgId contextId,
bool showInMediaView) {
// TEMP.
if (showInMediaView) {
_window->openInMediaView(Media::View::OpenRequest(
this,
@@ -1246,7 +1245,10 @@ void SessionController::openDocument(
session().data().message(contextId)));
return;
}
Data::ResolveDocument(document, session().data().message(contextId));
Data::ResolveDocument(
this,
document,
session().data().message(contextId));
}
SessionController::~SessionController() = default;