mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
parent
c1fb44a145
commit
1d4ed23394
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,7 @@ import org.signal.libsignal.protocol.SignalProtocolAddress;
|
||||||
import org.signal.libsignal.protocol.ecc.ECPublicKey;
|
import org.signal.libsignal.protocol.ecc.ECPublicKey;
|
||||||
import org.signal.libsignal.protocol.message.CiphertextMessage;
|
import org.signal.libsignal.protocol.message.CiphertextMessage;
|
||||||
import org.signal.libsignal.protocol.state.SessionRecord;
|
import org.signal.libsignal.protocol.state.SessionRecord;
|
||||||
|
import org.signal.libsignal.protocol.util.Hex;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.whispersystems.signalservice.api.SignalServiceSessionStore;
|
import org.whispersystems.signalservice.api.SignalServiceSessionStore;
|
||||||
|
@ -208,7 +209,8 @@ public class SessionStore implements SignalServiceSessionStore {
|
||||||
public Set<SignalProtocolAddress> getAllAddressesWithActiveSessions(final List<String> addressNames) {
|
public Set<SignalProtocolAddress> getAllAddressesWithActiveSessions(final List<String> addressNames) {
|
||||||
final var serviceIdsCommaSeparated = addressNames.stream()
|
final var serviceIdsCommaSeparated = addressNames.stream()
|
||||||
.map(ServiceId::parseOrThrow)
|
.map(ServiceId::parseOrThrow)
|
||||||
.map(ServiceId::toString)
|
.map(ServiceId::toByteArray)
|
||||||
|
.map(uuid -> "x'" + Hex.toStringCondensed(uuid) + "'")
|
||||||
.collect(Collectors.joining(","));
|
.collect(Collectors.joining(","));
|
||||||
final var sql = (
|
final var sql = (
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue