Refresh self profile before rotating profile key

This commit is contained in:
AsamK 2022-05-23 16:24:08 +02:00
parent 3abb641c7c
commit 621d822a6c

View file

@ -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();