mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
Create contacts cache
This commit is contained in:
parent
923c0c6da3
commit
05ca5b482c
@ -96,4 +96,22 @@ QtObject
|
||||
}
|
||||
}
|
||||
|
||||
property QtObject contactsCache: QtObject
|
||||
{
|
||||
id: contactsCache
|
||||
property var contactsList
|
||||
|
||||
function getContactFromGxsId (gxsId)
|
||||
{
|
||||
console.log("getContactFromGxsId (gxsId)", gxsId)
|
||||
for(var i in contactsList)
|
||||
{
|
||||
if (contactsList[i].gxs_id == gxsId) return contactsList[i]
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user