Added view to show/edit contact details

Split ColorHash.qml in a new file so it is reusable
ContactSort.js preferred contacts goes before non preferred
Contacts.qml use proper id for listview
Contacts.qml removed fingerprint popup
GxsIdentityDelegate.qml simplified, move link generation to ContactDetails.qml
This commit is contained in:
Gioacchino Mazzurco 2017-05-08 20:35:15 +02:00
parent ccaf4881a8
commit d0b881f5e0
8 changed files with 243 additions and 116 deletions

View file

@ -42,6 +42,9 @@ function cntcmp(left, right, searchText)
var lfun = left.hasOwnProperty("unread_count") ? left.unread_count : 0
var rgun = right.hasOwnProperty("unread_count") ? right.unread_count : 0
if( lfun !== rgun ) return rgun - lfun
var lcon = left.is_contact
var rcon = right.is_contact
if( lcon !== rcon ) return rcon - lcon
if(left.name !== right.name) return strcmp(left.name, right.name)
return strcmp(left.gxs_id, right.gxs_id)
}