Outgoing message sound respects Settings toggle (#1373)

This commit is contained in:
Mike 2016-11-03 14:51:38 -04:00 committed by Michael Kirk
parent 431a91a485
commit 7c6b84c46b

View file

@ -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 =