mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Remove own number from group when quitting
This commit is contained in:
parent
3cc5704406
commit
5c1127ced6
1 changed files with 6 additions and 1 deletions
|
@ -425,7 +425,11 @@ class Manager implements Signal {
|
|||
.asGroupMessage(group)
|
||||
.build();
|
||||
|
||||
sendMessage(message, groupStore.getGroup(groupId).members);
|
||||
final GroupInfo g = groupStore.getGroup(groupId);
|
||||
g.members.remove(this.username);
|
||||
groupStore.updateGroup(g);
|
||||
|
||||
sendMessage(message, g.members);
|
||||
}
|
||||
|
||||
public byte[] sendUpdateGroupMessage(byte[] groupId, String name, Collection<String> members, String avatarFile) throws IOException, EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, UntrustedIdentityException {
|
||||
|
@ -641,6 +645,7 @@ class Manager implements Signal {
|
|||
try {
|
||||
group = groupStore.getGroup(groupInfo.getGroupId());
|
||||
group.members.remove(source);
|
||||
groupStore.updateGroup(group);
|
||||
} catch (GroupNotFoundException e) {
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue