Respond to CR.
This commit is contained in:
parent
650469c6a7
commit
22c922bf5b
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue