We we had a little bug because the OpenModalButton gets registered before the gameID is in the state, and so it tries to open the websocket with an invalid gameID. Now it works.
Also made a little change in mergeMessageArrays which is necessary for the unread message badge to display the right number.
We we had a little bug because the OpenModalButton gets registered before the gameID is in the state, and so it tries to open the websocket with an invalid gameID. Now it works.
Also made a little change in mergeMessageArrays which is necessary for the unread message badge to display the right number.