Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 0c6305bfb4
commit 19c9e226fb

@ -2693,8 +2693,7 @@ typedef enum : NSUInteger {
if ([Environment.preferences soundInForeground]) { if ([Environment.preferences soundInForeground]) {
SystemSoundID soundId = [OWSSounds systemSoundIDForSound:OWSSound_MessageSent quiet:YES]; SystemSoundID soundId = [OWSSounds systemSoundIDForSound:OWSSound_MessageSent quiet:YES];
// Vibrate, respect silent switch, respect "Alert" volume, not media volume. AudioServicesPlaySystemSound(soundId);
AudioServicesPlayAlertSound(soundId);
} }
} }

@ -96,7 +96,7 @@ NSString *const kOWSSoundsStorageGlobalNotificationKey = @"kOWSSoundsStorageGlob
_dbConnection = primaryStorage.newDatabaseConnection; _dbConnection = primaryStorage.newDatabaseConnection;
// Don't store too many sounds in memory. Most users will only use 1 or 2 sounds anyway. // Don't store too many sounds in memory. Most users will only use 1 or 2 sounds anyway.
_cachedSystemSounds = [[AnyLRUCache alloc] initWithMaxSize:3]; _cachedSystemSounds = [[AnyLRUCache alloc] initWithMaxSize:4];
OWSSingletonAssert(); OWSSingletonAssert();

Loading…
Cancel
Save