fixes #3
This commit is contained in:
parent
81d3f6cfa9
commit
0eb0a91ec6
@ -103,7 +103,7 @@ function successPolling(data) {
|
||||
|
||||
$(".chat-title").find("span").html(onlineCount + " online");
|
||||
if( messages.length > 0 ) {
|
||||
last_chat_id = messages[0].id;
|
||||
last_chat_id = messages[0]["message"]["id"];
|
||||
}
|
||||
for( let i = 0; i < messages.length; i++ ) {
|
||||
let obj = messages[i].message;
|
||||
|
Loading…
x
Reference in New Issue
Block a user