kopia lustrzana https://github.com/ryukoposting/Signal-Android
Handle legacy hangup properly.
rodzic
d33873d59a
commit
ed13c97ad7
|
@ -547,8 +547,11 @@ public final class SignalServiceContent {
|
|||
}
|
||||
|
||||
return SignalServiceCallMessage.forIceUpdates(iceUpdates, isMultiRing, destinationDeviceId);
|
||||
} else if (content.hasLegacyHangup()) {
|
||||
SignalServiceProtos.CallMessage.Hangup hangup = content.getLegacyHangup();
|
||||
return SignalServiceCallMessage.forHangup(new HangupMessage(hangup.getId(), HangupMessage.Type.fromProto(hangup.getType()), hangup.getDeviceId(), content.hasLegacyHangup()), isMultiRing, destinationDeviceId);
|
||||
} else if (content.hasHangup()) {
|
||||
SignalServiceProtos.CallMessage.Hangup hangup = content.hasLegacyHangup() ? content.getLegacyHangup() : content.getHangup();
|
||||
SignalServiceProtos.CallMessage.Hangup hangup = content.getHangup();
|
||||
return SignalServiceCallMessage.forHangup(new HangupMessage(hangup.getId(), HangupMessage.Type.fromProto(hangup.getType()), hangup.getDeviceId(), content.hasLegacyHangup()), isMultiRing, destinationDeviceId);
|
||||
} else if (content.hasBusy()) {
|
||||
SignalServiceProtos.CallMessage.Busy busy = content.getBusy();
|
||||
|
|
Ładowanie…
Reference in New Issue