fix tests

This commit is contained in:
Salvatore Giordano
2020-11-16 16:33:44 +01:00
parent 43c9445d2b
commit 0efce1bf3a
+4 -2
View File
@@ -816,7 +816,8 @@ class _MessageWidgetState extends State<MessageWidget> {
), ),
), ),
if (widget.message.attachments if (widget.message.attachments
.any((element) => element.ogScrapeUrl != null)) ?.any((element) => element.ogScrapeUrl != null) ==
true)
_buildUrlAttachment(), _buildUrlAttachment(),
], ],
), ),
@@ -843,7 +844,8 @@ class _MessageWidgetState extends State<MessageWidget> {
} }
if (widget.message.attachments if (widget.message.attachments
.any((element) => element.ogScrapeUrl != null)) { ?.any((element) => element.ogScrapeUrl != null) ==
true) {
return Color(0xFFE9F2FF); return Color(0xFFE9F2FF);
} }