quick fix for chat, for protocol changes

for #589
This commit is contained in:
Jon Atkins 2013-09-30 22:51:06 +01:00
parent c82cd14641
commit 4c2bb5ecfa

View File

@ -81,7 +81,8 @@ window.chat.genPostData = function(isFaction, storageHash, getOlderMsgs) {
maxLngE6: Math.round(ne.lng*1E6), maxLngE6: Math.round(ne.lng*1E6),
minTimestampMs: -1, minTimestampMs: -1,
maxTimestampMs: -1, maxTimestampMs: -1,
factionOnly: isFaction factionOnly: isFaction,
chatTab: isFaction ? 'faction' : 'all'
} }
if(getOlderMsgs) { if(getOlderMsgs) {
@ -689,7 +690,8 @@ window.chat.postMsg = function() {
var data = {message: msg, var data = {message: msg,
latE6: Math.round(latlng.lat*1E6), latE6: Math.round(latlng.lat*1E6),
lngE6: Math.round(latlng.lng*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&' + var errMsg = 'Your message could not be delivered. You can copy&' +
'paste it here and try again if you want:\n\n' + msg; 'paste it here and try again if you want:\n\n' + msg;