Auto-add groups to profile whitelist groups when you make them.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent e74e7f7cc9
commit ddf3929be1

@ -439,8 +439,12 @@ const NSUInteger kNewGroupViewControllerAvatarWidth = 68;
- (void)createGroup - (void)createGroup
{ {
OWSAssert([NSThread isMainThread]);
TSGroupModel *model = [self makeGroup]; TSGroupModel *model = [self makeGroup];
[OWSProfileManager.sharedManager addGroupIdToProfileWhitelist:model.groupId];
__block TSGroupThread *thread; __block TSGroupThread *thread;
[[TSStorageManager sharedManager].dbReadWriteConnection [[TSStorageManager sharedManager].dbReadWriteConnection
readWriteWithBlock:^(YapDatabaseReadWriteTransaction *_Nonnull transaction) { readWriteWithBlock:^(YapDatabaseReadWriteTransaction *_Nonnull transaction) {

Loading…
Cancel
Save