mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Fix crash when trying to update a group call without an era id.
This commit is contained in:
committed by
Greyson Parrelli
parent
32dd227ab6
commit
e0633180ef
@@ -1034,7 +1034,12 @@ public class SignalServiceMessageSender {
|
||||
}
|
||||
|
||||
if (message.getGroupCallUpdate().isPresent()) {
|
||||
builder.setGroupCallUpdate(DataMessage.GroupCallUpdate.newBuilder().setEraId(message.getGroupCallUpdate().get().getEraId()));
|
||||
String eraId = message.getGroupCallUpdate().get().getEraId();
|
||||
if (eraId != null) {
|
||||
builder.setGroupCallUpdate(DataMessage.GroupCallUpdate.newBuilder().setEraId(eraId));
|
||||
} else {
|
||||
builder.setGroupCallUpdate(DataMessage.GroupCallUpdate.getDefaultInstance());
|
||||
}
|
||||
}
|
||||
|
||||
if (message.getPayment().isPresent()) {
|
||||
|
||||
Reference in New Issue
Block a user