mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Fix refresh avatar image after change it
This commit is contained in:
parent
040a358d69
commit
77c6db2155
3 changed files with 16 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue