mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Create an initial empty profile after registration
This commit is contained in:
parent
7afb1347b4
commit
4f578c2645
3 changed files with 4 additions and 6 deletions
|
@ -381,8 +381,8 @@ public class Manager implements Closeable {
|
||||||
accountManager.setVersionedProfile(account.getUuid(),
|
accountManager.setVersionedProfile(account.getUuid(),
|
||||||
account.getProfileKey(),
|
account.getProfileKey(),
|
||||||
newProfile.getInternalServiceName(),
|
newProfile.getInternalServiceName(),
|
||||||
newProfile.getAbout(),
|
newProfile.getAbout() == null ? "" : newProfile.getAbout(),
|
||||||
newProfile.getAboutEmoji(),
|
newProfile.getAboutEmoji() == null ? "" : newProfile.getAboutEmoji(),
|
||||||
streamDetails);
|
streamDetails);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,8 @@ public class RegistrationManager implements Closeable {
|
||||||
account = null;
|
account = null;
|
||||||
|
|
||||||
m.refreshPreKeys();
|
m.refreshPreKeys();
|
||||||
|
// Set an initial empty profile so user can be added to groups
|
||||||
|
m.setProfile(null, null, null, null);
|
||||||
|
|
||||||
final var result = m;
|
final var result = m;
|
||||||
m = null;
|
m = null;
|
||||||
|
|
|
@ -227,8 +227,6 @@ Don’t download attachments of received messages.
|
||||||
=== joinGroup
|
=== joinGroup
|
||||||
|
|
||||||
Join a group via an invitation link.
|
Join a group via an invitation link.
|
||||||
To be able to join a v2 group the account needs to have a profile (can be created
|
|
||||||
with the `updateProfile` command)
|
|
||||||
|
|
||||||
*--uri*::
|
*--uri*::
|
||||||
The invitation link URI (starts with `https://signal.group/#`)
|
The invitation link URI (starts with `https://signal.group/#`)
|
||||||
|
@ -237,8 +235,6 @@ The invitation link URI (starts with `https://signal.group/#`)
|
||||||
|
|
||||||
Create or update a group.
|
Create or update a group.
|
||||||
If the user is a pending member, this command will accept the group invitation.
|
If the user is a pending member, this command will accept the group invitation.
|
||||||
To be able to join or create a v2 group the account needs to have a profile (can
|
|
||||||
be created with the `updateProfile` command)
|
|
||||||
|
|
||||||
*-g* GROUP, *--group* GROUP::
|
*-g* GROUP, *--group* GROUP::
|
||||||
Specify the recipient group ID in base64 encoding.
|
Specify the recipient group ID in base64 encoding.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue