From: Scott Worley Date: Fri, 3 Aug 2012 07:58:03 +0000 (-0700) Subject: Pass message on *after* setting since. X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/92ca5f8ac08fed647bf8af836cf41ce0fa70ea56?hp=bd1ed9dd102d04d543f2fad5737b91c1a5835316 Pass message on *after* setting since. rcreceivemessages() modifies the message. The fetch loop needs to extract the final timestamp for since= feedback before it is modified. --- diff --git a/webclient/rc.html b/webclient/rc.html index a062a17..0dd591c 100644 --- 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); } } }