fix tests

This commit is contained in:
Salvatore Giordano
2020-11-05 10:54:00 +01:00
parent 279800026f
commit 5099b55fde
+3 -2
View File
@@ -216,8 +216,9 @@ class _MessageWidgetState extends State<MessageWidget> {
? widget.messageTheme.avatarTheme.constraints.maxWidth + 16.0
: 6.0;
bool isGiphy =
widget.message.attachments.any((element) => element.type == 'giphy');
final isGiphy =
widget.message.attachments?.any((element) => element.type == 'giphy') ==
true;
return Portal(
child: Padding(