mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Slightly refactored display of media preview.
- Removed showMediaPreview from facades.
This commit is contained in:
@@ -192,20 +192,6 @@ void showBox(
|
||||
|
||||
} // namespace internal
|
||||
|
||||
void showMediaPreview(
|
||||
Data::FileOrigin origin,
|
||||
not_null<DocumentData*> document) {
|
||||
if (auto w = App::wnd()) {
|
||||
w->ui_showMediaPreview(origin, document);
|
||||
}
|
||||
}
|
||||
|
||||
void showMediaPreview(Data::FileOrigin origin, not_null<PhotoData*> photo) {
|
||||
if (auto w = App::wnd()) {
|
||||
w->ui_showMediaPreview(origin, photo);
|
||||
}
|
||||
}
|
||||
|
||||
void hideLayer(anim::type animated) {
|
||||
if (auto w = App::wnd()) {
|
||||
w->ui_showBox(
|
||||
|
Reference in New Issue
Block a user