matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: [Immer] This object has been frozen and should not be mutated.

suryakantgupta321 opened this issue · comments

I get this error with the following steps:-

  • Send a normal message event in a room with the sendEvent method
    image

  • Edit the event by changing its content and also add rel_type as m.replace and pass eventId of edited event
    image

  • Now try to do a reaction on the same edited event like this
    image

  • 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.