Skip to content

Commit

Permalink
Only open new group create UI in alpha releases for now
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichAltheide committed Nov 20, 2023
1 parent 2f87882 commit 2908264
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Monal/Classes/ContactsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,15 @@ -(void) viewDidLoad
addContact.image = [UIImage systemImageNamed:@"person.fill.badge.plus"];
[addContact setAction:@selector(openAddContacts:)];

self.navigationItem.rightBarButtonItems = [[NSArray alloc] initWithObjects:addContact, [UIBarButtonItem new], nil];
#ifdef IS_ALPHA
UIBarButtonItem* createGroup = [[UIBarButtonItem alloc] init];
createGroup.image = [UIImage systemImageNamed:@"person.3.fill"];
[createGroup setAction:@selector(openCreateGroup:)];

self.navigationItem.rightBarButtonItems = [[NSArray alloc] initWithObjects:addContact, [[UIBarButtonItem alloc] init], createGroup, nil];
#else
self.navigationItem.rightBarButtonItems = [[NSArray alloc] initWithObjects:addContact, [UIBarButtonItem new], nil];
#endif

[self configureContactRequestsImage];

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleContactUpdate) name:kMonalContactRemoved object:nil];
Expand Down

0 comments on commit 2908264

Please sign in to comment.