mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Add chunks in TimelineVoiceBroadcastDetails
This commit is contained in:
@@ -111,7 +111,7 @@ public class VoiceBroadcastAggregator {
|
||||
|
||||
let eventTypes = [VoiceBroadcastSettings.eventType, kMXEventTypeStringRoomMessage]
|
||||
self.referenceEventsListener = self.room.listen(toEventsOfTypes: eventTypes) { [weak self] event, direction, state in
|
||||
// TODO: VB check sender id to block fake voice broadcast chunk
|
||||
// TODO: VB check if the sender id is the same as the user id who's created the voice broadcast to block a fake voice broadcast chunk
|
||||
guard let self = self,
|
||||
let relatedEventId = event.relatesTo?.eventId,
|
||||
relatedEventId == self.voiceBroadcastStartEventId,
|
||||
|
||||
@@ -18,17 +18,15 @@ import Foundation
|
||||
|
||||
public protocol VoiceBroadcastProtocol {
|
||||
var chunks: Set<VoiceBroadcastChunk> { get }
|
||||
var isClosed: Bool { get }
|
||||
var kind: VoiceBroadcastKind { get }
|
||||
}
|
||||
|
||||
public enum VoiceBroadcastKind {
|
||||
case disclosed
|
||||
case undisclosed
|
||||
case player
|
||||
case recorder
|
||||
}
|
||||
|
||||
class VoiceBroadcast: VoiceBroadcastProtocol {
|
||||
var chunks: Set<VoiceBroadcastChunk> = []
|
||||
var isClosed: Bool = false
|
||||
var kind: VoiceBroadcastKind = .disclosed
|
||||
var kind: VoiceBroadcastKind = .player
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user