Refactor chat cache to add remoteGXS property to make chat last message more identificable

This commit is contained in:
Angela Mazzurco 2017-06-05 20:17:19 +02:00
parent d3e3f14afd
commit 78fc0bc995
3 changed files with 68 additions and 38 deletions

View file

@ -103,6 +103,7 @@ Item
{'action': 'refreshUnread', 'response': par.response})
json.data.forEach (function (chat){
ChatCache.lastMessageCache.updateLastMessageCache(chat.chat_id)
ChatCache.lastMessageCache.setRemoteGXS (chat.chat_id, chat.remote_author_id)
})
}
function refreshUnread()