Change how do you put chat tittle saving chat name into variable on cache GXS info

This commit is contained in:
Angela Mazzurco 2017-06-12 15:44:07 +02:00
parent ba72332ed8
commit ea8d03bc10
4 changed files with 18 additions and 6 deletions

View file

@ -103,7 +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)
ChatCache.lastMessageCache.setRemoteGXS (chat.chat_id, { gxs: chat.remote_author_id, name: chat.remote_author_name})
})
}
function refreshUnread()