fixed bugs

This commit is contained in:
Deven Joshi
2021-12-17 21:50:34 +05:30
parent ec28d00e81
commit 099e904614
2 changed files with 5 additions and 3 deletions
@@ -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);
}