mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-05 17:45:35 -05:00
Reload top face when avatar is changed
This commit is contained in:
parent
3fecbe02a3
commit
c880f5f783
@ -53,9 +53,15 @@ Item
|
||||
var base64Image = androidImagePicker.imageToBase64(resultFile)
|
||||
|
||||
rsApi.request("/identity/set_avatar", JSON.stringify({"gxs_id": cntDt.md.gxs_id, "avatar": base64Image }),
|
||||
function (res){
|
||||
console.log("Avatar changed! " , JSON.stringify(res))
|
||||
})
|
||||
function (par)
|
||||
{
|
||||
var jP = JSON.parse(par.response)
|
||||
if (jP.returncode === "ok")
|
||||
{
|
||||
console.log("Avatar changed! ")
|
||||
topFace.getDetails()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user