mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refresh self profile before rotating profile key
This commit is contained in:
parent
3abb641c7c
commit
621d822a6c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue