Fix message bubble color

This commit is contained in:
Christian Pauly 2020-05-10 13:26:52 +02:00
commit 44f3f2f412
3 changed files with 21 additions and 6 deletions

View file

@ -19,10 +19,10 @@ extension LocalizedBody on Event {
}
bool get showThumbnail =>
[EventTypes.Message, EventTypes.Sticker].contains(type) &&
[MessageTypes.Image, MessageTypes.Sticker].contains(messageType) &&
(kIsWeb ||
(content['info'] is Map &&
content['info']['size'] < room.client.store.maxFileSize));
(content['info'] is Map &&
content['info']['size'] < room.client.store.maxFileSize));
String get sizeString {
if (content["info"] is Map<String, dynamic> &&