X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/d7aa09ecdf7282d0f26d4b78f8c5e95c5330d40f..ad35b1be32194d39fab00cba46b9a05dee1addac:/webclient/rc.html?ds=sidebyside diff --git a/webclient/rc.html b/webclient/rc.html index 8f69921..97491cd 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -129,10 +129,11 @@ function rcreceivemessages(server, messages) { for (var i in messages) { - var seen_key = make_seen_key(messages[i]['ID'], messages[i]['Text']); + var m = messages[i]; + var seen_key = make_seen_key(m.ID, m.Text); if (!(seen_key in seen)) { seen[seen_key] = true; - rcaddmessagetohistory(messages[i]); + rcaddmessagetohistory(m); for (var i in servers) { rcchangeserverstatus(servers[i], "sad"); } @@ -154,7 +155,7 @@ rcreceivemessages(server, messages); delay = 40; if (messages.length >= 1 && "Time" in messages[messages.length-1]) { - since[server] = messages[messages.length-1]["Time"]; + since[server] = messages[messages.length-1].Time; } } }