From da703aed174768791e71a0b6d0f6df2beb5f481e Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:44:18 +0900 Subject: [PATCH] fix minor compile warnings --- Sources/LiveKit/Participant/LocalParticipant.swift | 2 +- Sources/LiveKit/SwiftUI/SwiftUIVideoView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }