mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Added ability to show document from Controller for sections.
This commit is contained in:
@@ -1235,8 +1235,15 @@ void SessionController::openPhoto(
|
||||
|
||||
void SessionController::openDocument(
|
||||
not_null<DocumentData*> document,
|
||||
FullMsgId contextId) {
|
||||
FullMsgId contextId,
|
||||
bool showInMediaView) {
|
||||
// TEMP.
|
||||
if (showInMediaView) {
|
||||
_window->openInMediaView(Media::View::OpenRequest(
|
||||
document,
|
||||
session().data().message(contextId)));
|
||||
return;
|
||||
}
|
||||
Data::ResolveDocument(document, session().data().message(contextId));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user