mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 12:23:31 +00:00
Fix loading GIF media attachments, at least if it is being added as a literal attachment
This commit is contained in:
parent
ceaf7ad178
commit
97d2b7ed7e
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue