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

@ -58,6 +58,7 @@ function mergeContactsUnread()
var el = jsonData[i]
if(unreadMessages.hasOwnProperty(el.gxs_id))
el['unread_count'] = unreadMessages[el.gxs_id]
else el['unread_count'] = "0" // This must be string
}
}