mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-02-22 22:24:36 +01:00
Refresh self profile before rotating profile key
This commit is contained in:
@@ -61,6 +61,8 @@ public final class ProfileHelper {
|
||||
}
|
||||
|
||||
public void rotateProfileKey() throws IOException {
|
||||
// refresh our profile, before creating a new profile key
|
||||
getSelfProfile();
|
||||
var profileKey = KeyUtils.createProfileKey();
|
||||
account.setProfileKey(profileKey);
|
||||
context.getAccountHelper().updateAccountAttributes();
|
||||
|
||||
Reference in New Issue
Block a user