Fix whitelist
whitelist cache are a bunch of NSNumber's, we need to check their boolValue // FREEBIE
This commit is contained in:
parent
6d6ffd6d3a
commit
279eb89023
@ -672,8 +672,7 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640;
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
@synchronized(self)
|
||||
{
|
||||
// We just consult the lazy cache, not the db.
|
||||
if (self.userProfileWhitelistCache[recipientId]) {
|
||||
if ([self isUserInProfileWhitelist:recipientId]) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -700,9 +699,8 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640;
|
||||
|
||||
@synchronized(self)
|
||||
{
|
||||
// We just consult the lazy cache, not the db.
|
||||
for (NSString *recipientId in recipientIds) {
|
||||
if (!self.userProfileWhitelistCache[recipientId]) {
|
||||
if (![self isUserInProfileWhitelist:recipientId]) {
|
||||
[newRecipientIds addObject:recipientId];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user