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)