|
|
@ -8,10 +8,12 @@
|
|
|
|
#import <SignalServiceKit/TSStorageHeaders.h>
|
|
|
|
#import <SignalServiceKit/TSStorageHeaders.h>
|
|
|
|
#import <SignalServiceKit/YapDatabaseConnection+OWS.h>
|
|
|
|
#import <SignalServiceKit/YapDatabaseConnection+OWS.h>
|
|
|
|
#import <SignalServiceKit/YapDatabaseTransaction+OWS.h>
|
|
|
|
#import <SignalServiceKit/YapDatabaseTransaction+OWS.h>
|
|
|
|
|
|
|
|
#import <SignalServiceKit/NSNotificationCenter+OWS.h>
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
NSString *const OWSPreferencesSignalDatabaseCollection = @"SignalPreferences";
|
|
|
|
NSString *const OWSPreferencesSignalDatabaseCollection = @"SignalPreferences";
|
|
|
|
|
|
|
|
NSString *const OWSPreferencesCallLoggingDidChangeNotification = @"OWSPreferencesCallLoggingDidChangeNotification";
|
|
|
|
|
|
|
|
|
|
|
|
NSString *const OWSPreferencesKeyScreenSecurity = @"Screen Security Key";
|
|
|
|
NSString *const OWSPreferencesKeyScreenSecurity = @"Screen Security Key";
|
|
|
|
NSString *const OWSPreferencesKeyEnableDebugLog = @"Debugging Log Enabled Key";
|
|
|
|
NSString *const OWSPreferencesKeyEnableDebugLog = @"Debugging Log Enabled Key";
|
|
|
@ -259,6 +261,11 @@ NSString *const OWSPreferencesKeySystemCallLogEnabled = @"OWSPreferencesKeySyste
|
|
|
|
[self setValueForKey:OWSPreferencesKeySystemCallLogEnabled
|
|
|
|
[self setValueForKey:OWSPreferencesKeySystemCallLogEnabled
|
|
|
|
toValue:@(shouldLogCallsInRecents)
|
|
|
|
toValue:@(shouldLogCallsInRecents)
|
|
|
|
transaction:transaction];
|
|
|
|
transaction:transaction];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// We need to reload the callService.callUIAdapter here, but SignalMessaging doesn't know about CallService, so we use
|
|
|
|
|
|
|
|
// notifications to decouple the code. This is admittedly awkward, but it only happens once, and the alternative would
|
|
|
|
|
|
|
|
// be importing all the call related classes into SignalMessaging.
|
|
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationNameAsync:OWSPreferencesCallLoggingDidChangeNotification object:nil];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)isCallKitEnabled
|
|
|
|
- (BOOL)isCallKitEnabled
|
|
|
|