Fixed the build errors resulting from the merging

pull/894/head
Morgan Pretty 2 months ago
parent ba3acaa2da
commit 9ae785ae3a

@ -318,7 +318,7 @@ public final class SessionCall: CurrentCallProtocol, WebRTCSessionDelegate {
func handleCallInitializationFailed() {
self.endSessionCall()
Singleton.callManager.reportCurrentCallEnded(reason: nil)
dependencies[singleton: .callManager].reportCurrentCallEnded(reason: nil)
}
// MARK: - Call Message Handling

@ -112,11 +112,9 @@ public final class NotificationServiceExtension: UNNotificationServiceExtension
)
let hasMicrophonePermission: Bool = {
return switch Permissions.microphone {
case .undetermined:
(UserDefaults.sharedLokiProject?[.lastSeenHasMicrophonePermission]).defaulting(to: false)
default:
Permissions.microphone == .granted
switch Permissions.microphone {
case .undetermined: return dependencies[defaults: .appGroup, key: .lastSeenHasMicrophonePermission]
default: return (Permissions.microphone == .granted)
}
}()

Loading…
Cancel
Save