mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Fix refresh avatar image after change it
This commit is contained in:
parent
040a358d69
commit
77c6db2155
@ -133,6 +133,14 @@ QtObject
|
||||
}
|
||||
return ""
|
||||
}
|
||||
function delIdentityAvatar (gxsId)
|
||||
{
|
||||
if (identityDetails[gxsId] && identityDetails[gxsId].avatar !== undefined)
|
||||
{
|
||||
identityDetails[gxsId].avatar = ""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ Item
|
||||
if (jP.returncode === "ok")
|
||||
{
|
||||
console.log("Avatar changed! ")
|
||||
topFace.getDetails()
|
||||
topFace.refresh()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -105,6 +105,13 @@ Item
|
||||
|
||||
}
|
||||
}
|
||||
function refresh()
|
||||
{
|
||||
ChatCache.contactsCache.delIdentityAvatar(gxs_id)
|
||||
compRoot.avatarAttemptCnt = 0
|
||||
getDetails()
|
||||
|
||||
}
|
||||
|
||||
Component.onCompleted: startComponent ()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user