So this is a difficult one…
On our chat system, when we receive messages, we store them in indexdb, before storing them, we call serialize() on the message. When we pull them out of the store, we call buildFromSerializedData(message).
This works… up until a reaction is added to the message.
At first i thought it was something to do with us storing in indexdb… so i wrote a script in chrome sources panel. It turns out it is an issue with the chat sdk.
You can view the script here:
It’s pretty rough/hacky, but i just wanted to be 100% sure it wasn’t something weird caused by our implementation. It tests the raw use case without anything external taking control.
We have built our own “sync manager” to handle our extended use cases. So the way we access sendbird in this case is via that, but this code follows sendbirds documentation on how to implement reactions.
Have I done something wrong or is this an SDK issue?
Error from the SDK is: