Fix loading GIF media attachments, at least if it is being added as a literal attachment

codemagic-setup
Hank Grabowski 2023-04-03 13:42:46 -04:00
rodzic ceaf7ad178
commit 97d2b7ed7e
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -8,6 +8,10 @@ enum AttachmentMediaType {
return AttachmentMediaType.unknown;
}
if (text == 'gif' || text == 'gifv') {
return AttachmentMediaType.image;
}
return AttachmentMediaType.values.firstWhere(
(e) => e.name == text,
orElse: () => unknown,