basic chat example does not preserve order

I'm starting out with the basic example from

and it seems that the state sync does not preserve the order of the messages array

what am i missing?

Hi @amir-arad, oh that's true. I've just created an issue for this:

I also need to update the "chat" example, because that's not the most optimal way of handling chat. The messages on a chat should be ephemeral and not preserved in the room's state.

The "state handler" is a much better example of how to use the platform:

Sorry for the inconvenience! :)