Outgoing message sound respects Settings toggle (#1373)

pull/1/head
Mike 9 years ago committed by Michael Kirk
parent 431a91a485
commit 7c6b84c46b

@ -654,7 +654,9 @@ typedef enum : NSUInteger {
date:(NSDate *)date
{
if (text.length > 0) {
[JSQSystemSoundPlayer jsq_playMessageSentSound];
if ([Environment.preferences soundInForeground]) {
[JSQSystemSoundPlayer jsq_playMessageSentSound];
}
TSOutgoingMessage *message;
OWSDisappearingMessagesConfiguration *configuration =

Loading…
Cancel
Save