mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-29 00:37:10 -05:00
Set Retroshare image if no gxs identity is passed
This commit is contained in:
parent
0a3a04c245
commit
402a2562c5
@ -39,16 +39,24 @@ Item
|
|||||||
{
|
{
|
||||||
console.log("getDetails() ", compRoot.gxs_id )
|
console.log("getDetails() ", compRoot.gxs_id )
|
||||||
++compRoot.avatarAttemptCnt
|
++compRoot.avatarAttemptCnt
|
||||||
rsApi.request(
|
if (gxs_id)
|
||||||
"/identity/get_identity_details",
|
{
|
||||||
JSON.stringify({ gxs_id: compRoot.gxs_id }),
|
rsApi.request(
|
||||||
function(par)
|
"/identity/get_identity_details",
|
||||||
{
|
JSON.stringify({ gxs_id: compRoot.gxs_id }),
|
||||||
var jData = JSON.parse(par.response).data
|
function(par)
|
||||||
setDetails(jData)
|
{
|
||||||
if(!compRoot.has_avatar &&
|
var jData = JSON.parse(par.response).data
|
||||||
compRoot.avatarAttemptCnt < 3) getDetails()
|
setDetails(jData)
|
||||||
})
|
if(!compRoot.has_avatar &&
|
||||||
|
compRoot.avatarAttemptCnt < 3) getDetails()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
has_avatar = true
|
||||||
|
contactAvatar.source = "/icons/retroshare06.png"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function setDetails(data)
|
function setDetails(data)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user