|
|
@ -62,8 +62,9 @@ NSString *const kOWSSoundsStorageGlobalNotificationKey = @"kOWSSoundsStorageGlob
|
|
|
|
+ (NSArray<NSNumber *> *)allNotificationSounds
|
|
|
|
+ (NSArray<NSNumber *> *)allNotificationSounds
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return @[
|
|
|
|
return @[
|
|
|
|
// None should be first.
|
|
|
|
// None and Note (default) should be first.
|
|
|
|
@(OWSSound_None),
|
|
|
|
@(OWSSound_None),
|
|
|
|
|
|
|
|
@(OWSSound_Note),
|
|
|
|
|
|
|
|
|
|
|
|
@(OWSSound_Aurora),
|
|
|
|
@(OWSSound_Aurora),
|
|
|
|
@(OWSSound_Bamboo),
|
|
|
|
@(OWSSound_Bamboo),
|
|
|
@ -74,7 +75,6 @@ NSString *const kOWSSoundsStorageGlobalNotificationKey = @"kOWSSoundsStorageGlob
|
|
|
|
@(OWSSound_Hello),
|
|
|
|
@(OWSSound_Hello),
|
|
|
|
@(OWSSound_Input),
|
|
|
|
@(OWSSound_Input),
|
|
|
|
@(OWSSound_Keys),
|
|
|
|
@(OWSSound_Keys),
|
|
|
|
@(OWSSound_Note),
|
|
|
|
|
|
|
|
@(OWSSound_Popcorn),
|
|
|
|
@(OWSSound_Popcorn),
|
|
|
|
@(OWSSound_Pulse),
|
|
|
|
@(OWSSound_Pulse),
|
|
|
|
@(OWSSound_Synth),
|
|
|
|
@(OWSSound_Synth),
|
|
|
@ -117,11 +117,9 @@ NSString *const kOWSSoundsStorageGlobalNotificationKey = @"kOWSSoundsStorageGlob
|
|
|
|
case OWSSound_ClassicNotification:
|
|
|
|
case OWSSound_ClassicNotification:
|
|
|
|
return @"Classic";
|
|
|
|
return @"Classic";
|
|
|
|
|
|
|
|
|
|
|
|
// Ringtone Sounds
|
|
|
|
// Call Audio
|
|
|
|
case OWSSound_Opening:
|
|
|
|
case OWSSound_Opening:
|
|
|
|
return @"Opening";
|
|
|
|
return @"Opening";
|
|
|
|
|
|
|
|
|
|
|
|
// Calls
|
|
|
|
|
|
|
|
case OWSSound_CallConnecting:
|
|
|
|
case OWSSound_CallConnecting:
|
|
|
|
return @"Call Connecting";
|
|
|
|
return @"Call Connecting";
|
|
|
|
case OWSSound_CallOutboundRinging:
|
|
|
|
case OWSSound_CallOutboundRinging:
|
|
|
@ -286,6 +284,7 @@ NSString *const kOWSSoundsStorageGlobalNotificationKey = @"kOWSSoundsStorageGlob
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OWSAssert(transaction);
|
|
|
|
OWSAssert(transaction);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DDLogInfo(@"%@ Setting global notification sound to: %s", sound);
|
|
|
|
[transaction setObject:@(sound)
|
|
|
|
[transaction setObject:@(sound)
|
|
|
|
forKey:kOWSSoundsStorageGlobalNotificationKey
|
|
|
|
forKey:kOWSSoundsStorageGlobalNotificationKey
|
|
|
|
inCollection:kOWSSoundsStorageNotificationCollection];
|
|
|
|
inCollection:kOWSSoundsStorageNotificationCollection];
|
|
|
|