fixed bugs
This commit is contained in:
@@ -538,7 +538,7 @@ class MessageInputState extends State<MessageInput>
|
||||
),
|
||||
),
|
||||
);
|
||||
if (_isEditing) {
|
||||
if (!_isEditing) {
|
||||
child = Material(
|
||||
elevation: 8,
|
||||
child: child,
|
||||
|
||||
@@ -334,8 +334,10 @@ class _StreamAttachmentPickerState extends State<StreamAttachmentPicker> {
|
||||
onMediaSelected: (media) {
|
||||
if (messageInputController.attachments
|
||||
.any((e) => e.id == media.id)) {
|
||||
setState(() => messageInputController.attachments
|
||||
.removeWhere((e) => e.id == media.id));
|
||||
messageInputController
|
||||
.removeAttachmentById(media.id);
|
||||
// setState(() => messageInputController.attachments
|
||||
// .removeWhere((e) => e.id == media.id));
|
||||
} else {
|
||||
_addAssetAttachment(media);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user