93 lines
2.8 KiB
Objective-C
93 lines
2.8 KiB
Objective-C
//
|
|
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSFakeCallMessageHandler.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
#ifdef TESTABLE_BUILD
|
|
|
|
@implementation OWSFakeCallMessageHandler
|
|
|
|
- (OWSCallMessageAction)actionForEnvelope:(SSKProtoEnvelope *)envelope
|
|
callMessage:(SSKProtoCallMessage *)message
|
|
serverDeliveryTimestamp:(uint64_t)serverDeliveryTimestamp
|
|
{
|
|
return OWSCallMessageActionProcess;
|
|
}
|
|
|
|
- (void)receivedOffer:(SSKProtoCallMessageOffer *)offer
|
|
fromCaller:(SignalServiceAddress *)caller
|
|
sourceDevice:(uint32_t)device
|
|
sentAtTimestamp:(uint64_t)sentAtTimestamp
|
|
serverReceivedTimestamp:(uint64_t)serverReceivedTimestamp
|
|
serverDeliveryTimestamp:(uint64_t)serverDeliveryTimestamp
|
|
supportsMultiRing:(BOOL)supportsMultiRing
|
|
transaction:(SDSAnyWriteTransaction *)transaction
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)receivedAnswer:(SSKProtoCallMessageAnswer *)answer
|
|
fromCaller:(SignalServiceAddress *)caller
|
|
sourceDevice:(uint32_t)device
|
|
supportsMultiRing:(BOOL)supportsMultiRing
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)receivedIceUpdate:(SSKProtoCallMessageIceUpdate *)iceUpdate
|
|
fromCaller:(SignalServiceAddress *)caller
|
|
sourceDevice:(uint32_t)device
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)receivedHangup:(SSKProtoCallMessageHangup *)hangup
|
|
fromCaller:(SignalServiceAddress *)caller
|
|
sourceDevice:(uint32_t)device
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)receivedBusy:(SSKProtoCallMessageBusy *)busy
|
|
fromCaller:(SignalServiceAddress *)caller
|
|
sourceDevice:(uint32_t)device
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)receivedOpaque:(SSKProtoCallMessageOpaque *)opaque
|
|
fromCaller:(SignalServiceAddress *)caller
|
|
sourceDevice:(uint32_t)device
|
|
serverReceivedTimestamp:(uint64_t)serverReceivedTimestamp
|
|
serverDeliveryTimestamp:(uint64_t)serverDeliveryTimestamp
|
|
transaction:(SDSAnyWriteTransaction *)transaction
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)receivedGroupCallUpdateMessage:(SSKProtoDataMessageGroupCallUpdate *)updateMessage
|
|
forThread:(TSGroupThread *)groupThread
|
|
serverReceivedTimestamp:(uint64_t)serverReceivedTimestamp
|
|
completion:(dispatch_block_t)completionHandler
|
|
{
|
|
OWSLogInfo(@"");
|
|
}
|
|
|
|
- (void)externallyHandleCallMessageWithEnvelope:(SSKProtoEnvelope *)envelope
|
|
plaintextData:(NSData *)plaintextData
|
|
wasReceivedByUD:(BOOL)wasReceivedByUD
|
|
serverDeliveryTimestamp:(uint64_t)serverDeliveryTimestamp
|
|
transaction:(SDSAnyWriteTransaction *)transaction
|
|
{
|
|
OWSFailDebug(@"Can't handle externally.");
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
NS_ASSUME_NONNULL_END
|