MESSENGER-3152 remove typing notification for ignored users

This commit is contained in:
Frank Rotermund
2022-07-23 13:57:26 +02:00
parent 9a0b7d9c81
commit 8e1539da87

View File

@@ -5270,6 +5270,17 @@ static CGSize kThreadListBarButtonItemImageSize;
[typingUsers removeObjectAtIndex:index];
}
// bwi remove ignored users from typing users
if (BwiBuildSettings.bwiBetterIgnoredUsers) {
for (NSString* ignoredId in self.mainSession.ignoredUsers) {
NSUInteger index = [typingUsers indexOfObject:ignoredId];
if (index != NSNotFound)
{
[typingUsers removeObjectAtIndex:index];
}
}
}
// Ignore this notification if both arrays are empty
if (self->currentTypingUsers.count || typingUsers.count)
{