add message_reaction_modal_test

This commit is contained in:
Salvatore Giordano
2020-10-16 14:56:52 +02:00
parent 084e5eedbb
commit 747ae96168
8 changed files with 107 additions and 21 deletions
+3 -2
View File
@@ -519,8 +519,9 @@ class _MessageWidgetState extends State<MessageWidget> {
List<Widget> _parseAttachments(BuildContext context) {
final images = widget.message.attachments
.where((element) => element.type == 'image')
.toList();
?.where((element) => element.type == 'image')
?.toList() ??
[];
if (images.length > 1) {
return [