mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Remove use of legacy hangup in sending flow.
This commit is contained in:
committed by
Alex Hart
parent
ff5b024074
commit
11e0dd18d3
@@ -1320,11 +1320,7 @@ public class SignalServiceMessageSender {
|
||||
builderForHangup.setDeviceId(callMessage.getHangupMessage().get().getDeviceId());
|
||||
}
|
||||
|
||||
if (callMessage.getHangupMessage().get().isLegacy()) {
|
||||
builder.setLegacyHangup(builderForHangup);
|
||||
} else {
|
||||
builder.setHangup(builderForHangup);
|
||||
}
|
||||
builder.setHangup(builderForHangup);
|
||||
} else if (callMessage.getBusyMessage().isPresent()) {
|
||||
builder.setBusy(CallMessage.Busy.newBuilder().setId(callMessage.getBusyMessage().get().getId()));
|
||||
} else if (callMessage.getOpaqueMessage().isPresent()) {
|
||||
|
||||
@@ -8,13 +8,11 @@ public class HangupMessage {
|
||||
private final long id;
|
||||
private final Type type;
|
||||
private final int deviceId;
|
||||
private final boolean isLegacy;
|
||||
|
||||
public HangupMessage(long id, Type type, int deviceId, boolean isLegacy) {
|
||||
public HangupMessage(long id, Type type, int deviceId) {
|
||||
this.id = id;
|
||||
this.type = type;
|
||||
this.deviceId = deviceId;
|
||||
this.isLegacy = isLegacy;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
@@ -29,10 +27,6 @@ public class HangupMessage {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public boolean isLegacy() {
|
||||
return isLegacy;
|
||||
}
|
||||
|
||||
public enum Type {
|
||||
NORMAL("normal", SignalServiceProtos.CallMessage.Hangup.Type.HANGUP_NORMAL),
|
||||
ACCEPTED("accepted", SignalServiceProtos.CallMessage.Hangup.Type.HANGUP_ACCEPTED),
|
||||
|
||||
Reference in New Issue
Block a user