|
|
|
@ -3,10 +3,6 @@
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "OWSPreferences.h"
|
|
|
|
|
#import <SessionMessagingKit/SSKEnvironment.h>
|
|
|
|
|
#import <SessionMessagingKit/YapDatabaseConnection+OWS.h>
|
|
|
|
|
#import <SessionMessagingKit/YapDatabaseTransaction+OWS.h>
|
|
|
|
|
#import <SessionUtilitiesKit/SessionUtilitiesKit.h>
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
@ -384,6 +380,17 @@ NSString *const OWSPreferencesKeySystemCallLogEnabled = @"OWSPreferencesKeySyste
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (NotificationType)notificationPreviewTypeWithTransaction:(YapDatabaseReadTransaction *)transaction
|
|
|
|
|
{
|
|
|
|
|
NSNumber *preference = [self tryGetValueForKey:OWSPreferencesKeyNotificationPreviewType transaction:transaction];
|
|
|
|
|
|
|
|
|
|
if (preference) {
|
|
|
|
|
return [preference unsignedIntegerValue];
|
|
|
|
|
} else {
|
|
|
|
|
return NotificationNamePreview;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (NSString *)nameForNotificationPreviewType:(NotificationType)notificationType
|
|
|
|
|
{
|
|
|
|
|
switch (notificationType) {
|
|
|
|
|