mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 22:51:12 -04:00
Use contacts cache to show contacts details
This commit is contained in:
parent
05ca5b482c
commit
c2b63a2313
2 changed files with 7 additions and 10 deletions
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
import QtQuick 2.7
|
||||
import "../" //Needed for Chat Cache
|
||||
|
||||
|
||||
Item
|
||||
|
@ -62,16 +63,11 @@ Item
|
|||
function showDetails()
|
||||
{
|
||||
console.log("showDetails() ", gxs_id)
|
||||
rsApi.request(
|
||||
"/identity/get_identity_details",
|
||||
JSON.stringify({ gxs_id: compRoot.gxs_id }),
|
||||
function(par)
|
||||
{
|
||||
var jData = JSON.parse(par.response).data
|
||||
stackView.push(
|
||||
"qrc:/ContactDetails.qml",
|
||||
{md: jData})
|
||||
})
|
||||
|
||||
stackView.push(
|
||||
"qrc:/ContactDetails.qml",
|
||||
{md: ChatCache.contactsCache.getContactFromGxsId(gxs_id)})
|
||||
|
||||
}
|
||||
|
||||
Component.onCompleted: if(visible && !has_avatar) getDetails()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue