-
Notifications
You must be signed in to change notification settings - Fork 846
Open
Description
don't know which version exactly changes that, but after updating, our app got broken:
Unsupported operation: Cannot modify unmodifiable map
Message was unmodifiable long time, but metadata wasn't.
example::
message.metadata?.remove('btn_smile_back');
i have to change that into:
chat.Message updatedMsg = message.copyWith(
metadata: Map<String, dynamic>.from(message.metadata!)..remove('btn_smile_back'),
);
_chatController.updateMessage(message, updatedMsg);
I'm totally fine with the change, but it should be mentioned in changelog.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels