mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Fix address list for sender key messages.
This commit is contained in:
@@ -1820,6 +1820,10 @@ public class SignalServiceMessageSender {
|
||||
Set<SignalProtocolAddress> destinations = store.getAllAddressesWithActiveSessions(addressNames);
|
||||
Map<String, List<Integer>> devicesByAddressName = new HashMap<>();
|
||||
|
||||
destinations.addAll(recipients.stream()
|
||||
.map(a -> new SignalProtocolAddress(a.getIdentifier(), SignalServiceAddress.DEFAULT_DEVICE_ID))
|
||||
.collect(Collectors.toList()));
|
||||
|
||||
for (SignalProtocolAddress destination : destinations) {
|
||||
List<Integer> devices = devicesByAddressName.containsKey(destination.getName()) ? devicesByAddressName.get(destination.getName()) : new LinkedList<>();
|
||||
devices.add(destination.getDeviceId());
|
||||
|
||||
Reference in New Issue
Block a user