|
|
|
@ -204,6 +204,13 @@ NSString *const TSGroupThread_NotificationKey_UniqueId = @"TSGroupThread_Notific
|
|
|
|
|
return [linkedDeviceHexEncodedPublicKeys intersectsSet:[NSSet setWithArray:self.groupModel.groupMemberIds]];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (BOOL)isUserInGroup:(NSString *)hexEncodedPublicKey transaction:(YapDatabaseReadWriteTransaction *)transaction
|
|
|
|
|
{
|
|
|
|
|
if (hexEncodedPublicKey == nil) { return NO; }
|
|
|
|
|
NSSet<NSString *> *linkedDeviceHexEncodedPublicKeys = [LKDatabaseUtilities getLinkedDeviceHexEncodedPublicKeysFor:hexEncodedPublicKey in:transaction];
|
|
|
|
|
return [linkedDeviceHexEncodedPublicKeys intersectsSet:[NSSet setWithArray:self.groupModel.groupMemberIds]];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (NSString *)name
|
|
|
|
|
{
|
|
|
|
|
// TODO sometimes groupName is set to the empty string. I'm hesitent to change
|
|
|
|
|