kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix loading GIF media attachments, at least if it is being added as a literal attachment
rodzic
ceaf7ad178
commit
97d2b7ed7e
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue