mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Implement support for sending/receiving Group V2 messages
Requires libzkgroup to work, which is currently only included for x86_64 Linux Related #354
This commit is contained in:
parent
6d016bcfc9
commit
6a1b7dc597
12 changed files with 657 additions and 331 deletions
|
@ -10,12 +10,14 @@ import org.asamk.signal.util.ErrorUtils;
|
|||
import org.freedesktop.dbus.exceptions.DBusExecutionException;
|
||||
import org.whispersystems.libsignal.util.Pair;
|
||||
import org.whispersystems.signalservice.api.messages.SendMessageResult;
|
||||
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
||||
import org.whispersystems.signalservice.api.util.InvalidNumberException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class DbusSignalImpl implements Signal {
|
||||
|
||||
|
@ -152,7 +154,7 @@ public class DbusSignalImpl implements Signal {
|
|||
if (group == null) {
|
||||
return "";
|
||||
} else {
|
||||
return group.name;
|
||||
return group.getTitle();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,7 +164,7 @@ public class DbusSignalImpl implements Signal {
|
|||
if (group == null) {
|
||||
return Collections.emptyList();
|
||||
} else {
|
||||
return new ArrayList<>(group.getMembersE164());
|
||||
return group.getMembers().stream().map(m::resolveSignalServiceAddress).map(SignalServiceAddress::getLegacyIdentifier).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue