kestasjk / webDiplomacy

Play Diplomacy online
http://webdiplomacy.net/
GNU Affero General Public License v3.0
180 stars 113 forks source link

Fix message loading in V2 UI #841

Closed adamlerer closed 1 year ago

adamlerer commented 1 year ago

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.