mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 14:09:58 +00:00
Fix incorrect handling of hangup message.
This commit is contained in:
@@ -137,8 +137,8 @@ object CallMessageProcessor {
|
||||
) {
|
||||
log(envelope.timestamp!!, "handleCallHangupMessage")
|
||||
|
||||
val (hangupId, hangupDeviceId) = if (hangup?.id != null && hangup.deviceId != null) {
|
||||
hangup.id!! to hangup.deviceId!!
|
||||
val (hangupId: Long, hangupDeviceId: Int?) = if (hangup?.id != null) {
|
||||
hangup.id!! to hangup.deviceId
|
||||
} else {
|
||||
warn(envelope.timestamp!!, "Invalid hangup, null message or missing id/deviceId")
|
||||
return
|
||||
@@ -148,7 +148,7 @@ object CallMessageProcessor {
|
||||
ApplicationDependencies.getSignalCallManager()
|
||||
.receivedCallHangup(
|
||||
CallMetadata(remotePeer, metadata.sourceDeviceId),
|
||||
HangupMetadata(HangupMessage.Type.fromProto(hangup.type), hangupDeviceId)
|
||||
HangupMetadata(HangupMessage.Type.fromProto(hangup.type), hangupDeviceId ?: 0)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user