X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2FgameStorage.js;h=f69de2e2629a64ac9afc7f9a31eb7f2f3b25ff5e;hp=109c8251c04e90e2a99534e0064b6a771373380e;hb=1ef65040168ab7d55ce921abc9d63644a937d689;hpb=73f8753ff5abf6c5819684920565e655b6858175 diff --git a/client/src/utils/gameStorage.js b/client/src/utils/gameStorage.js index 109c8251..f69de2e2 100644 --- a/client/src/utils/gameStorage.js +++ b/client/src/utils/gameStorage.js @@ -87,6 +87,7 @@ export const GameStorage = { Object.keys(obj).forEach(k => { if (k == "move") game.moves.push(obj[k]); else if (k == "chat") game.chats.push(obj[k]); + else if (k == "chatRead") game.chatRead = Date.now(); else if (k == "delchat") game.chats = []; else game[k] = obj[k]; });