mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 18:38:35 +00:00
Handle legacy hangup properly.
This commit is contained in:
parent
d33873d59a
commit
ed13c97ad7
@ -547,8 +547,11 @@ public final class SignalServiceContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return SignalServiceCallMessage.forIceUpdates(iceUpdates, isMultiRing, destinationDeviceId);
|
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()) {
|
} 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);
|
return SignalServiceCallMessage.forHangup(new HangupMessage(hangup.getId(), HangupMessage.Type.fromProto(hangup.getType()), hangup.getDeviceId(), content.hasLegacyHangup()), isMultiRing, destinationDeviceId);
|
||||||
} else if (content.hasBusy()) {
|
} else if (content.hasBusy()) {
|
||||||
SignalServiceProtos.CallMessage.Busy busy = content.getBusy();
|
SignalServiceProtos.CallMessage.Busy busy = content.getBusy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user