Create an initial empty profile after registration

This commit is contained in:
AsamK 2021-05-03 17:46:53 +02:00
parent 7afb1347b4
commit 4f578c2645
3 changed files with 4 additions and 6 deletions

View file

@ -381,8 +381,8 @@ public class Manager implements Closeable {
accountManager.setVersionedProfile(account.getUuid(),
account.getProfileKey(),
newProfile.getInternalServiceName(),
newProfile.getAbout(),
newProfile.getAboutEmoji(),
newProfile.getAbout() == null ? "" : newProfile.getAbout(),
newProfile.getAboutEmoji() == null ? "" : newProfile.getAboutEmoji(),
streamDetails);
}

View file

@ -161,6 +161,8 @@ public class RegistrationManager implements Closeable {
account = null;
m.refreshPreKeys();
// Set an initial empty profile so user can be added to groups
m.setProfile(null, null, null, null);
final var result = m;
m = null;