Refresh self profile before rotating profile key
This commit is contained in:
parent
3abb641c7c
commit
621d822a6c
@ -61,6 +61,8 @@ public final class ProfileHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void rotateProfileKey() throws IOException {
|
public void rotateProfileKey() throws IOException {
|
||||||
|
// refresh our profile, before creating a new profile key
|
||||||
|
getSelfProfile();
|
||||||
var profileKey = KeyUtils.createProfileKey();
|
var profileKey = KeyUtils.createProfileKey();
|
||||||
account.setProfileKey(profileKey);
|
account.setProfileKey(profileKey);
|
||||||
context.getAccountHelper().updateAccountAttributes();
|
context.getAccountHelper().updateAccountAttributes();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user