projects
/
reliable-chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1ed9d
)
Pass message on *after* setting since.
author
Scott Worley
<sworley@chkno.net>
Fri, 3 Aug 2012 07:58:03 +0000
(
00:58
-0700)
committer
Scott Worley
<sworley@chkno.net>
Fri, 3 Aug 2012 07:58:03 +0000
(
00:58
-0700)
rcreceivemessages() modifies the message. The fetch loop needs
to extract the final timestamp for since= feedback before it is
modified.
webclient/rc.html
patch
|
blob
|
blame
|
history
diff --git
a/webclient/rc.html
b/webclient/rc.html
index a062a176b2dc8a92e0bb7f62fee1ebf9cefa2d5a..0dd591c11f3ac9c3a264ada813232136dd742a49 100644
(file)
--- a/
webclient/rc.html
+++ b/
webclient/rc.html
@@
-166,11
+166,11
@@
if (rtxt != null) {
var messages = JSON.parse(rtxt);
if (messages != null) {
- rcreceivemessages(server, messages);
delay = 40;
if (messages.length >= 1 && "Time" in messages[messages.length-1]) {
since[server] = messages[messages.length-1].Time;
}
+ rcreceivemessages(server, messages);
}
}
}