TM-SGNL-iOS/SignalServiceKit/Calls/CallRecord/CallRecordAssociatedInteraction.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

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 {}