diff --git a/Sources/MembraneRTC/MembraneRTC.swift b/Sources/MembraneRTC/MembraneRTC.swift index 563e54cc..7ce3105b 100644 --- a/Sources/MembraneRTC/MembraneRTC.swift +++ b/Sources/MembraneRTC/MembraneRTC.swift @@ -58,7 +58,7 @@ public class MembraneRTC: MulticastDelegate, ObservableObje private var localTracks: [LocalTrack] = [] - private var localEndpoint = Endpoint(id: "", type: "webrtc", metadata: .init([:]), trackIdToMetadata: [:]) + private var localEndpoint = Endpoint(id: "", type: "webrtc", metadata: .init([:]), trackIdToMetadata: [:], tracks: [:]) // mapping from peer's id to itself private var remoteEndpoints: [String: Endpoint] = [:]