From 4c2bb5ecfab3ed829d2d814649087bacc2131514 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 30 Sep 2013 22:51:06 +0100 Subject: [PATCH] quick fix for chat, for protocol changes for #589 --- code/chat.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/chat.js b/code/chat.js index 747e23b9..f6749a71 100644 --- a/code/chat.js +++ b/code/chat.js @@ -81,7 +81,8 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) { maxLngE6: Math.round(ne.lng*1E6), minTimestampMs: -1, maxTimestampMs: -1, - factionOnly: isFaction + factionOnly: isFaction, + chatTab: isFaction ? 'faction' : 'all' } if(getOlderMsgs) { @@ -689,7 +690,8 @@ window.chat.postMsg = function() { var data = {message: msg, latE6: Math.round(latlng.lat*1E6), lngE6: Math.round(latlng.lng*1E6), - factionOnly: !publik}; + factionOnly: !publik, + chatTab: publik ? 'all' : 'faction'}; var errMsg = 'Your message could not be delivered. You can copy&' + 'paste it here and try again if you want:\n\n' + msg;