mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
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:
parent
de9a44fac7
commit
c1c1d5ddb4
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue