Update lib/components/list_items/message.dart, lib/utils/event_extension.dart files
This commit is contained in:
parent
f2d2103f92
commit
1936427194
2 changed files with 4 additions and 3 deletions
|
|
@ -19,9 +19,10 @@ extension LocalizedBody on Event {
|
|||
}
|
||||
|
||||
bool get showThumbnail =>
|
||||
kIsWeb ||
|
||||
[EventTypes.Message, EventTypes.Sticker].contains(type) &&
|
||||
(kIsWeb ||
|
||||
(content['info'] is Map &&
|
||||
content['info']['size'] < room.client.store.maxFileSize);
|
||||
content['info']['size'] < room.client.store.maxFileSize));
|
||||
|
||||
String get sizeString {
|
||||
if (content["info"] is Map<String, dynamic> &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue