diff --git a/Sources/LiveKit/Participant/LocalParticipant.swift b/Sources/LiveKit/Participant/LocalParticipant.swift index 6f35bf66b..027bf3cf4 100644 --- a/Sources/LiveKit/Participant/LocalParticipant.swift +++ b/Sources/LiveKit/Participant/LocalParticipant.swift @@ -371,7 +371,7 @@ public class LocalParticipant: Participant { // TODO: Revert internal state on failure - try await room.engine.signalClient.sendUpdateLocalMetadata(metadata, name: name ?? "") + try await room.engine.signalClient.sendUpdateLocalMetadata(metadata, name: name) } /// Sets and updates the name of the local participant. diff --git a/Sources/LiveKit/SwiftUI/SwiftUIVideoView.swift b/Sources/LiveKit/SwiftUI/SwiftUIVideoView.swift index 135b74fa3..22ae02ec7 100644 --- a/Sources/LiveKit/SwiftUI/SwiftUIVideoView.swift +++ b/Sources/LiveKit/SwiftUI/SwiftUIVideoView.swift @@ -27,7 +27,7 @@ class TrackDelegateReceiver: TrackDelegate, Loggable { _statistics = statistics } - func track(_: VideoTrack, didUpdate dimensions: Dimensions?) { + func track(_: VideoTrack, didUpdateDimensions dimensions: Dimensions?) { Task.detached { @MainActor in self.dimensions = dimensions }