Qml app: fixed unread messages count displaying

Roles in models are not expected to change type, so they must be always
  defined and have the same type
This commit is contained in:
Gioacchino Mazzurco 2017-05-17 15:33:10 +02:00
parent de9a44fac7
commit c1c1d5ddb4
3 changed files with 5 additions and 4 deletions

View file

@ -50,8 +50,6 @@ Item
function refreshContactsCallback(par)
{
console.log("contactsView.refreshContactsCB()", visible)
if (contactsListModel.model.count < 1)
contactsListModel.json = par.response
var token = JSON.parse(par.response).statetoken
TokensManager.registerToken(token, refreshContacts)
contactsSortWorker.sendMessage(