From 6a2f27d92a23065c2c30874ef22c58f70a510c6f Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 10 Aug 2026 17:22:47 +0700 Subject: [PATCH] fix errors and warnings --- .../Shared/Services/VideoNoteRecorder.swift | 32 +++++++++---------- Sources/Shared/XMPP/LumaRoomStore.swift | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Sources/Shared/Services/VideoNoteRecorder.swift b/Sources/Shared/Services/VideoNoteRecorder.swift index b903a30..9fd0ba0 100644 --- a/Sources/Shared/Services/VideoNoteRecorder.swift +++ b/Sources/Shared/Services/VideoNoteRecorder.swift @@ -942,22 +942,22 @@ enum VideoNoteStopPolicy { } } -#if os(iOS) - extension VideoNoteRecorder { - fileprivate static var currentVideoOrientation: AVCaptureVideoOrientation { - switch UIDevice.current.orientation { - case .portraitUpsideDown: - return .portraitUpsideDown - case .landscapeLeft: - return .landscapeRight - case .landscapeRight: - return .landscapeLeft - default: - return .portrait - } - } - } -#endif +// #if os(iOS) +// extension VideoNoteRecorder { +// fileprivate static var currentVideoOrientation: AVCaptureVideoOrientation { +// switch UIDevice.current.orientation { +// case .portraitUpsideDown: +// return .portraitUpsideDown +// case .landscapeLeft: +// return .landscapeRight +// case .landscapeRight: +// return .landscapeLeft +// default: +// return .portrait +// } +// } +// } +// #endif private enum VideoNoteRecorderError: LocalizedError { case cameraPermissionDenied diff --git a/Sources/Shared/XMPP/LumaRoomStore.swift b/Sources/Shared/XMPP/LumaRoomStore.swift index 55c0c70..888dc9b 100644 --- a/Sources/Shared/XMPP/LumaRoomStore.swift +++ b/Sources/Shared/XMPP/LumaRoomStore.swift @@ -26,7 +26,7 @@ final class LumaRoomStore: RoomStore { with jid: BareJID, nickname: String, password: String? - ) -> ConversationCreateResult { + ) -> ConversationCreateResult { queue.sync { if let room = roomsByJID[jid] { return .found(room)