Skip to content

Commit

Permalink
is_animated seems to be broken, check for images count instead
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Jan 24, 2024
1 parent fd14973 commit 38e6446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KukaiCoreSwift/Services/MediaProxyService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public class MediaProxyService: NSObject {
imageView.image = fallback
}

if image?.sd_isAnimated == true, let maxMemory = maxAnimatedImageSize, (image?.sd_memoryCost ?? 0) > maxMemory {
if (image?.images?.count ?? 0) > 0, let maxMemory = maxAnimatedImageSize, (image?.sd_memoryCost ?? 0) > maxMemory {
imageView.image = image?.images?.first
} else {
imageView.image = image
Expand Down

0 comments on commit 38e6446

Please sign in to comment.