]> git.scottworley.com Git - reliable-chat/commitdiff
Fix initial servertimes entry.
authorScott Worley <sworley@chkno.net>
Fri, 3 Aug 2012 17:48:05 +0000 (10:48 -0700)
committerScott Worley <sworley@chkno.net>
Fri, 3 Aug 2012 17:48:05 +0000 (10:48 -0700)
(Use the value of the variable server, not the string "server".)

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) {