Don't get last of empty list
This commit is contained in:
1 parent
e62b177940
commit
ef8dfc082c
1 file changed
+1
@@ -136,6 +136,7 @@ var NotificationBase = new Class({
|
|||||||
App.fireEvent(result.type, result)
|
App.fireEvent(result.type, result)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if(json.result.length > 0)
|
||||||
self.last_id = json.result.getLast().message_id
|
self.last_id = json.result.getLast().message_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user