mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added SessionController pointer to Media::View::OverlayWidget.
This commit is contained in:
@@ -1223,6 +1223,7 @@ void SessionController::openPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
FullMsgId contextId) {
|
||||
_window->openInMediaView(Media::View::OpenRequest(
|
||||
this,
|
||||
photo,
|
||||
session().data().message(contextId)));
|
||||
}
|
||||
@@ -1230,7 +1231,7 @@ void SessionController::openPhoto(
|
||||
void SessionController::openPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
not_null<PeerData*> peer) {
|
||||
_window->openInMediaView(Media::View::OpenRequest(photo, peer));
|
||||
_window->openInMediaView(Media::View::OpenRequest(this, photo, peer));
|
||||
}
|
||||
|
||||
void SessionController::openDocument(
|
||||
@@ -1240,6 +1241,7 @@ void SessionController::openDocument(
|
||||
// TEMP.
|
||||
if (showInMediaView) {
|
||||
_window->openInMediaView(Media::View::OpenRequest(
|
||||
this,
|
||||
document,
|
||||
session().data().message(contextId)));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user