diff --git a/lib/models/emotes.dart b/lib/models/emotes.dart index e5a00edc..1f6538c1 100644 --- a/lib/models/emotes.dart +++ b/lib/models/emotes.dart @@ -261,9 +261,10 @@ class Emote { final emoteData = emote.data; final url = emoteData!.host.url; + // Flutter doesn't support AVIF yet. - final file = emoteData.host.files.reversed.firstWhere( - (file) => file.format != 'AVIF' && file.name.contains('4x'), + final file = emoteData.host.files.lastWhere( + (file) => file.format != 'AVIF', ); // Check if the flag has 1 at the 8th bit.