Commit 8b0888d7 by NGUYEN HOANG SON

fix unread message list count

parent 0d93f066
......@@ -83,7 +83,11 @@ CHK_Dashboard.updateDataCommunications = function() {
if (item.id == 'messageList') {
item.count = 0;
if (typeof CHK.pushMessageList !== 'undefined') {
item.count = CHK.pushMessageList.length;
CHK.pushMessageList.forEach(function(message) {
if (!message.readingFlg) {
item.count += 1;
}
});
}
} else if (item.id == 'chat') {
item.enabled = CHK.isChat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment