2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Added SessionController pointer to Media::View::OverlayWidget.

This commit is contained in:
23rd
2021-06-15 21:54:31 +03:00
committed by John Preston
parent dc0aaec4a4
commit 9290cd3a16
5 changed files with 49 additions and 15 deletions

View File

@@ -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;