fix .type on null bug

This commit is contained in:
Salvatore Giordano
2020-12-09 12:03:01 +01:00
parent b9a1f813ac
commit fe541892d9
+1 -1
View File
@@ -818,7 +818,7 @@ class MessageInputState extends State<MessageInput> {
Widget _buildPickerSection() {
var _attachmentContainsFile =
_attachments.any((element) => element.attachment.type == 'file');
_attachments.any((element) => element.attachment?.type == 'file');
switch (_filePickerIndex) {
case 0: