51 lines
2.1 KiB
Swift
51 lines
2.1 KiB
Swift
//
|
|
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
import SignalServiceKit
|
|
|
|
@objc
|
|
public class NoopCallMessageHandler: NSObject, OWSCallMessageHandler {
|
|
|
|
public func action(
|
|
for envelope: SSKProtoEnvelope,
|
|
callMessage: SSKProtoCallMessage,
|
|
serverDeliveryTimestamp: UInt64
|
|
) -> OWSCallMessageAction {
|
|
.process
|
|
}
|
|
|
|
public func receivedOffer(_ offer: SSKProtoCallMessageOffer, from caller: SignalServiceAddress, sourceDevice device: UInt32, sentAtTimestamp: UInt64, serverReceivedTimestamp: UInt64, serverDeliveryTimestamp: UInt64, supportsMultiRing: Bool,
|
|
transaction: SDSAnyWriteTransaction) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func receivedAnswer(_ answer: SSKProtoCallMessageAnswer, from caller: SignalServiceAddress, sourceDevice device: UInt32, supportsMultiRing: Bool) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func receivedIceUpdate(_ iceUpdate: [SSKProtoCallMessageIceUpdate], from caller: SignalServiceAddress, sourceDevice device: UInt32) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func receivedHangup(_ hangup: SSKProtoCallMessageHangup, from caller: SignalServiceAddress, sourceDevice device: UInt32) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func receivedBusy(_ busy: SSKProtoCallMessageBusy, from caller: SignalServiceAddress, sourceDevice device: UInt32) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func receivedOpaque(_ opaque: SSKProtoCallMessageOpaque, from caller: SignalServiceAddress, sourceDevice device: UInt32, serverReceivedTimestamp: UInt64, serverDeliveryTimestamp: UInt64, transaction: SDSAnyReadTransaction) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func receivedGroupCallUpdateMessage(_ update: SSKProtoDataMessageGroupCallUpdate, for groupThread: TSGroupThread, serverReceivedTimestamp: UInt64) {
|
|
owsFailDebug("")
|
|
}
|
|
|
|
public func externallyHandleCallMessage(envelope: SSKProtoEnvelope, plaintextData: Data, wasReceivedByUD: Bool, serverDeliveryTimestamp: UInt64, transaction: SDSAnyWriteTransaction) {
|
|
owsFailDebug("Can't handle externally.")
|
|
}
|
|
}
|