mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Open any document type via external media viewer
This commit is contained in:
@@ -3216,7 +3216,7 @@ void SessionController::openDocument(
|
||||
if (openSharedStory(item) || openFakeItemStory(message.id, stories)) {
|
||||
return;
|
||||
} else if (showInMediaView) {
|
||||
if (OptionExternalMediaViewer.value() && document->isVideoFile()) {
|
||||
if (OptionExternalMediaViewer.value() && !document->isTheme()) {
|
||||
const auto filepath = document->filepath();
|
||||
if (filepath.isEmpty()) {
|
||||
if (document->loadedInMediaCache()) {
|
||||
|
||||
Reference in New Issue
Block a user