mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Slightly refactored display of media preview.
- Removed showMediaPreview from facades.
This commit is contained in:
@@ -382,7 +382,7 @@ bool MainWindow::ui_isLayerShown() {
|
||||
return _layer != nullptr;
|
||||
}
|
||||
|
||||
void MainWindow::ui_showMediaPreview(
|
||||
void MainWindow::showMediaPreview(
|
||||
Data::FileOrigin origin,
|
||||
not_null<DocumentData*> document) {
|
||||
if (!document || ((!document->isAnimation() || !document->loaded()) && !document->sticker())) {
|
||||
@@ -398,7 +398,7 @@ void MainWindow::ui_showMediaPreview(
|
||||
_mediaPreview->showPreview(origin, document);
|
||||
}
|
||||
|
||||
void MainWindow::ui_showMediaPreview(
|
||||
void MainWindow::showMediaPreview(
|
||||
Data::FileOrigin origin,
|
||||
not_null<PhotoData*> photo) {
|
||||
if (!photo) {
|
||||
|
Reference in New Issue
Block a user