fix errors and warnings
This commit is contained in:
1 parent
dee1eab897
commit
6a2f27d92a
2 files changed
+17
-17
No files matched your search
@@ -942,22 +942,22 @@ enum VideoNoteStopPolicy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if os(iOS)
|
// #if os(iOS)
|
||||||
extension VideoNoteRecorder {
|
// extension VideoNoteRecorder {
|
||||||
fileprivate static var currentVideoOrientation: AVCaptureVideoOrientation {
|
// fileprivate static var currentVideoOrientation: AVCaptureVideoOrientation {
|
||||||
switch UIDevice.current.orientation {
|
// switch UIDevice.current.orientation {
|
||||||
case .portraitUpsideDown:
|
// case .portraitUpsideDown:
|
||||||
return .portraitUpsideDown
|
// return .portraitUpsideDown
|
||||||
case .landscapeLeft:
|
// case .landscapeLeft:
|
||||||
return .landscapeRight
|
// return .landscapeRight
|
||||||
case .landscapeRight:
|
// case .landscapeRight:
|
||||||
return .landscapeLeft
|
// return .landscapeLeft
|
||||||
default:
|
// default:
|
||||||
return .portrait
|
// return .portrait
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
private enum VideoNoteRecorderError: LocalizedError {
|
private enum VideoNoteRecorderError: LocalizedError {
|
||||||
case cameraPermissionDenied
|
case cameraPermissionDenied
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ final class LumaRoomStore: RoomStore {
|
|||||||
with jid: BareJID,
|
with jid: BareJID,
|
||||||
nickname: String,
|
nickname: String,
|
||||||
password: String?
|
password: String?
|
||||||
) -> ConversationCreateResult {
|
) -> ConversationCreateResult<RoomBase> {
|
||||||
queue.sync {
|
queue.sync {
|
||||||
if let room = roomsByJID[jid] {
|
if let room = roomsByJID[jid] {
|
||||||
return .found(room)
|
return .found(room)
|
||||||
|
|||||||
Reference in new issue
Block a user