Skip to content

Commit

Permalink
fix media types so video and audio are prioritised no matter what ord…
Browse files Browse the repository at this point in the history
…er they are in
  • Loading branch information
simonmcl committed Feb 2, 2024
1 parent c1f7897 commit ef205c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KukaiCoreSwift/Services/MediaProxyService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ public class MediaProxyService: NSObject {
if duplicatesRemoved.contains(where: { $0 == .audio }) && duplicatesRemoved.contains(where: { $0 == .image }) {
return .imageAndAudio

} else if duplicatesRemoved[0] == .video {
} else if duplicatesRemoved.contains(where: { $0 == .video }) {
return .videoOnly

} else if duplicatesRemoved[0] == .audio {
} else if duplicatesRemoved.contains(where: { $0 == .audio }) {
return .audioOnly

} else {
Expand Down

0 comments on commit ef205c8

Please sign in to comment.