mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-20 15:20:23 +01:00
Fix crash during group call peek with unknown members.
This commit is contained in:
committed by
Michelle Tang
parent
d4b3328151
commit
e100ffbc14
@@ -175,7 +175,12 @@ final class GroupManagerV2 {
|
||||
|
||||
Map<UUID, UuidCiphertext> uuidCipherTexts = new HashMap<>();
|
||||
for (Recipient recipient : recipients) {
|
||||
uuidCipherTexts.put(recipient.requireServiceId().getRawUuid(), clientZkGroupCipher.encrypt(recipient.requireServiceId().getLibSignalServiceId()));
|
||||
Optional<ServiceId> serviceId = recipient.getServiceId();
|
||||
if (serviceId.isPresent()) {
|
||||
uuidCipherTexts.put(serviceId.get().getRawUuid(), clientZkGroupCipher.encrypt(serviceId.get().getLibSignalServiceId()));
|
||||
} else {
|
||||
Log.w(TAG, "Recipient " + recipient.getId() + " has no ServiceId, skipping for group call peek");
|
||||
}
|
||||
}
|
||||
|
||||
return uuidCipherTexts;
|
||||
|
||||
Reference in New Issue
Block a user