Respond to CR.

This commit is contained in:
Matthew Chen 2018-11-01 16:24:45 -04:00
parent 650469c6a7
commit 22c922bf5b
2 changed files with 12 additions and 0 deletions

View File

@ -1336,6 +1336,12 @@ static const int kYapDatabaseRangeMinLength = 0;
- (void)typingIndicatorStateDidChange:(NSNotification *)notification
{
OWSAssertIsOnMainThread();
OWSAssertDebug([notification.object isKindOfClass:[NSString class]]);
OWSAssertDebug(self.thread);
if (![notification.object isEqual:self.thread.uniqueId]) {
return;
}
self.typingIndicatorsSender = [self.typingIndicators typingRecipientIdForThread:self.thread];
}

View File

@ -545,6 +545,12 @@ NS_ASSUME_NONNULL_BEGIN
- (void)typingIndicatorStateDidChange:(NSNotification *)notification
{
OWSAssertIsOnMainThread();
OWSAssertDebug([notification.object isKindOfClass:[NSString class]]);
OWSAssertDebug(self.thread);
if (![notification.object isEqual:self.thread.threadRecord.uniqueId]) {
return;
}
[self updatePreview];
}