Ignore typing indicators from self.

This commit is contained in:
Matthew Chen 2018-11-07 10:09:11 -05:00
parent af85c09602
commit 9cdf8d06fd
1 changed files with 4 additions and 0 deletions

View File

@ -667,6 +667,10 @@ 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.");
}
TSThread *_Nullable thread;
if (typingMessage.hasGroupID) {