X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=8f9b946ad2a1aebc1a10f577df2a6e33dffad239;hp=e6cb1e70a3dff14096b84a579bc7c70abf10744e;hb=0e16cb26f6380f57f1079ece9bdb654243073bde;hpb=0c3fe8a6c3e02af46e0bc646b40c1a0c420f9dcd diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index e6cb1e70..8f9b946a 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -551,7 +551,8 @@ export default { document.getElementById("chatBtn").style.backgroundColor = "#e2e2e2"; }, finishSendChat: function(chat) { - if (this.game.type == "corr") + // NOTE: anonymous chats in corr games are not stored on server (TODO?) + if (this.game.type == "corr" && this.st.user.id > 0) GameStorage.update(this.gameRef.id, {chat: chat}); }, processChat: function() {