constantize file name per CR

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 9b1695f28c
commit c1881c02c8

@ -16,6 +16,8 @@
#import <SignalServiceKit/TextSecureKitEnv.h> #import <SignalServiceKit/TextSecureKitEnv.h>
#import <SignalServiceKit/Threading.h> #import <SignalServiceKit/Threading.h>
NSString *const kNotificationsManagerNewMesssageSoundName = @"NewMessage.aifc";
@interface NotificationsManager () @interface NotificationsManager ()
@property (nonatomic) SystemSoundID newMessageSound; @property (nonatomic) SystemSoundID newMessageSound;
@ -97,7 +99,7 @@
}; };
if ([self shouldPlaySoundForNotification]) { if ([self shouldPlaySoundForNotification]) {
notification.soundName = @"NewMessage.aifc"; notification.soundName = kNotificationsManagerNewMesssageSoundName;
} }
NSString *alertMessage; NSString *alertMessage;
@ -136,7 +138,7 @@
Signal_Thread_UserInfo_Key : thread.uniqueId Signal_Thread_UserInfo_Key : thread.uniqueId
}; };
if ([self shouldPlaySoundForNotification]) { if ([self shouldPlaySoundForNotification]) {
notification.soundName = @"NewMessage.aifc"; notification.soundName = kNotificationsManagerNewMesssageSoundName;
} }
NSString *alertMessage; NSString *alertMessage;
@ -176,7 +178,7 @@
Signal_Thread_UserInfo_Key : thread.uniqueId Signal_Thread_UserInfo_Key : thread.uniqueId
}; };
if ([self shouldPlaySoundForNotification]) { if ([self shouldPlaySoundForNotification]) {
notification.soundName = @"NewMessage.aifc"; notification.soundName = kNotificationsManagerNewMesssageSoundName;
} }
NSString *alertMessage; NSString *alertMessage;
@ -219,7 +221,7 @@
UILocalNotification *notification = [[UILocalNotification alloc] init]; UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.userInfo = @{Signal_Thread_UserInfo_Key : thread.uniqueId}; notification.userInfo = @{Signal_Thread_UserInfo_Key : thread.uniqueId};
if (shouldPlaySound) { if (shouldPlaySound) {
notification.soundName = @"NewMessage.aifc"; notification.soundName = kNotificationsManagerNewMesssageSoundName;
} }
NSString *alertBodyString = @""; NSString *alertBodyString = @"";
@ -268,7 +270,7 @@
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive && messageDescription) { if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive && messageDescription) {
UILocalNotification *notification = [[UILocalNotification alloc] init]; UILocalNotification *notification = [[UILocalNotification alloc] init];
if (shouldPlaySound) { if (shouldPlaySound) {
notification.soundName = @"NewMessage.aifc"; notification.soundName = kNotificationsManagerNewMesssageSoundName;
} }
switch (self.notificationPreviewType) { switch (self.notificationPreviewType) {

Loading…
Cancel
Save