matrix-js-sdk
matrix-js-sdk copied to clipboard
Error: [Immer] This object has been frozen and should not be mutated.
I get this error with the following steps:-
-
Send a normal message event in a room with the sendEvent method
-
Edit the event by changing its content and also add rel_type as m.replace and pass eventId of edited event
-
Now try to do a reaction on the same edited event like this
-
And also in vice versa case first we do a reaction and then try to edit the message in that case also we get the same error.
Then it gives this error Error: [Immer] This object has been frozen and should not be mutated.
If more information is needed I can provide it.