2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Added ability to show content from Controller for inline results.

This commit is contained in:
23rd
2021-06-14 09:21:56 +03:00
committed by John Preston
parent 583c3d3429
commit 7885be4a94
12 changed files with 60 additions and 43 deletions

View File

@@ -22,6 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/view/history_view_replies_section.h"
#include "media/player/media_player_instance.h"
#include "media/view/media_view_open_common.h"
#include "data/data_document_resolver.h"
#include "data/data_media_types.h"
#include "data/data_session.h"
#include "data/data_folder.h"
@@ -1235,9 +1236,8 @@ void SessionController::openPhoto(
void SessionController::openDocument(
not_null<DocumentData*> document,
FullMsgId contextId) {
_window->openInMediaView(Media::View::OpenRequest(
document,
session().data().message(contextId)));
// TEMP.
Data::ResolveDocument(document, session().data().message(contextId));
}
SessionController::~SessionController() = default;