Skip to content

Commit

Permalink
Fix crash in media gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Jan 3, 2025
1 parent ddfe542 commit b1bf422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monal/Classes/MediaGallery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct ImageViewerWrapper: View {

var body: some View {
Group {
if let _ = info["mimeType"] as? String {
if let _ = info["mimeType"] as? String, (info["needsDownloading"] as! NSNumber).boolValue != true {
try? ImageViewer(delegate: dismisser, info: info)
} else {
Text("Invalid file data")
Expand Down

0 comments on commit b1bf422

Please sign in to comment.