mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Remove own number when sending group messages
This commit is contained in:
parent
0ad42a72ab
commit
3cc5704406
1 changed files with 6 additions and 2 deletions
|
@ -411,7 +411,9 @@ class Manager implements Signal {
|
|||
}
|
||||
SignalServiceDataMessage message = messageBuilder.build();
|
||||
|
||||
sendMessage(message, groupStore.getGroup(groupId).members);
|
||||
Set<String> members = groupStore.getGroup(groupId).members;
|
||||
members.remove(this.username);
|
||||
sendMessage(message, members);
|
||||
}
|
||||
|
||||
public void sendQuitGroupMessage(byte[] groupId) throws GroupNotFoundException, IOException, EncapsulatedExceptions, UntrustedIdentityException {
|
||||
|
@ -473,7 +475,9 @@ class Manager implements Signal {
|
|||
.asGroupMessage(group.build())
|
||||
.build();
|
||||
|
||||
sendMessage(message, g.members);
|
||||
final Set<String> membersSend = g.members;
|
||||
membersSend.remove(this.username);
|
||||
sendMessage(message, membersSend);
|
||||
return g.groupId;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue