Removed VoiceBroadcastProtocol

We do not need to abstract it
This commit is contained in:
manuroe
2022-10-19 09:38:36 +02:00
parent 92d9c2ea70
commit 4361c9fc9b
4 changed files with 5 additions and 10 deletions
@@ -100,9 +100,9 @@ final class VoiceBroadcastPlaybackController: Coordinator, Presentable, VoiceBro
// MARK: - Private
// VoiceBroadcastProtocol is intentionally not available in the SwiftUI target as we don't want
// VoiceBroadcast is intentionally not available in the SwiftUI target as we don't want
// to add the SDK as a dependency to it. We need to translate from one to the other on this level.
func buildTimelineVoiceBroadcastFrom(_ voiceBroadcast: VoiceBroadcastProtocol) -> TimelineVoiceBroadcastDetails {
func buildTimelineVoiceBroadcastFrom(_ voiceBroadcast: VoiceBroadcast) -> TimelineVoiceBroadcastDetails {
return TimelineVoiceBroadcastDetails(chunks: Array(voiceBroadcast.chunks), type: voiceBroadcastKindToTimelineVoiceBroadcastType(voiceBroadcast.kind))
}