Path: blob/main/SignalServiceKit/Calls/CallRecord/CallRecordAssociatedInteraction.swift
1 views
//
// 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 {}