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;