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)
|
||||
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
|
||||
|
||||
@@ -26,7 +26,7 @@ final class LumaRoomStore: RoomStore {
|
||||
with jid: BareJID,
|
||||
nickname: String,
|
||||
password: String?
|
||||
) -> ConversationCreateResult {
|
||||
) -> ConversationCreateResult<RoomBase> {
|
||||
queue.sync {
|
||||
if let room = roomsByJID[jid] {
|
||||
return .found(room)
|
||||
|
||||
Reference in new issue
Block a user