Merge branch 'charlesmchen/typingIndicatorsVsSelf'

This commit is contained in:
Matthew Chen 2018-11-07 11:08:31 -05:00
commit b519baf37d

View file

@ -667,6 +667,11 @@ NS_ASSUME_NONNULL_BEGIN
OWSFailDebug(@"typingMessage has invalid timestamp.");
return;
}
NSString *localNumber = self.tsAccountManager.localNumber;
if ([localNumber isEqualToString:envelope.source]) {
OWSLogVerbose(@"Ignoring typing indicators from self or linked device.");
return;
}
TSThread *_Nullable thread;
if (typingMessage.hasGroupID) {