Migrated llc Lists to be nullable instead of being an empty array

This commit is contained in:
Ayush Shekhar
2022-04-26 21:11:24 +05:30
parent 381e1c06f5
commit b6bb3608e5
23 changed files with 178 additions and 153 deletions
@@ -45,7 +45,7 @@ class StreamGiphyAttachment extends StreamAttachmentWidget {
if (imageUrl == null) {
return const AttachmentError();
}
if (attachment.actions.isNotEmpty) {
if (attachment.actions != null && attachment.actions!.isNotEmpty) {
return _buildSendingAttachment(context, imageUrl);
}
return _buildSentAttachment(context, imageUrl);