Enable / disable external friends invite

This commit is contained in:
Gil Eluard
2021-04-01 15:02:43 +02:00
parent 9b4cb2f94f
commit a5526415fb
4 changed files with 24 additions and 1 deletions
@@ -133,6 +133,12 @@
- (void)setupInviteFriendsHeaderView
{
if (!RiotSettings.shared.allowInviteExernalUsers)
{
self.contactsTableView.tableHeaderView = nil;
return;
}
InviteFriendsHeaderView *inviteFriendsHeaderView = [InviteFriendsHeaderView instantiate];
inviteFriendsHeaderView.delegate = self;
self.contactsTableView.tableHeaderView = inviteFriendsHeaderView;