]> git.scottworley.com Git - reliable-chat/blobdiff - webclient/rc.html
Fix initial servertimes entry.
[reliable-chat] / webclient / rc.html
index 988f1fb558be441382764d7c8e435241309bd397..f3abaf3faadee799136099b6eaf9b685695db784 100644 (file)
                                seen[seen_key].ServerTimes[server] = m.Time;
                                rcupdatemessagetime(seen[seen_key]);
                        } else {
                                seen[seen_key].ServerTimes[server] = m.Time;
                                rcupdatemessagetime(seen[seen_key]);
                        } else {
-                               m.ServerTimes = {server: m.Time};
+                               m.ServerTimes = {};
+                               m.ServerTimes[server] = m.Time;
                                seen[seen_key] = m;
                                rcaddmessagetohistory(m);
                                for (var i in servers) {
                                seen[seen_key] = m;
                                rcaddmessagetohistory(m);
                                for (var i in servers) {