21 lines
658 B
Swift
21 lines
658 B
Swift
//
|
|
// Copyright 2024 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
/// Represents an interaction that may be associated with a ``CallRecord``.
|
|
public protocol CallRecordAssociatedInteraction: TSInteraction {}
|
|
|
|
public extension CallRecord {
|
|
static func assertDebugIsCallRecordInteraction(_ interaction: TSInteraction) {
|
|
owsAssertDebug(
|
|
interaction is CallRecordAssociatedInteraction,
|
|
"Unexpected associated interaction type: \(type(of: interaction))"
|
|
)
|
|
}
|
|
}
|
|
|
|
// MARK: -
|
|
|
|
extension TSCall: CallRecordAssociatedInteraction {}
|
|
extension OWSGroupCallMessage: CallRecordAssociatedInteraction {}
|