From 19c9e226fb152d76af7135b266d08c93136c2bda Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 1 Jun 2018 17:51:18 -0400 Subject: [PATCH] Respond to CR. --- .../ConversationView/ConversationViewController.m | 3 +-- SignalMessaging/environment/OWSSounds.m | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index 33de8ea9c..ac1b53cc4 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -2693,8 +2693,7 @@ typedef enum : NSUInteger { if ([Environment.preferences soundInForeground]) { SystemSoundID soundId = [OWSSounds systemSoundIDForSound:OWSSound_MessageSent quiet:YES]; - // Vibrate, respect silent switch, respect "Alert" volume, not media volume. - AudioServicesPlayAlertSound(soundId); + AudioServicesPlaySystemSound(soundId); } } diff --git a/SignalMessaging/environment/OWSSounds.m b/SignalMessaging/environment/OWSSounds.m index 9d2156215..4d9465a2a 100644 --- a/SignalMessaging/environment/OWSSounds.m +++ b/SignalMessaging/environment/OWSSounds.m @@ -96,7 +96,7 @@ NSString *const kOWSSoundsStorageGlobalNotificationKey = @"kOWSSoundsStorageGlob _dbConnection = primaryStorage.newDatabaseConnection; // 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();