mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Disable the contact access footer view in Unified Search.
This commit is contained in:
@@ -66,6 +66,13 @@
|
||||
*/
|
||||
@property (weak, nonatomic) IBOutlet UITableView *contactsTableView;
|
||||
|
||||
/**
|
||||
When true, the footer that allows the user to grant access to their contacts will
|
||||
never be shown. When false, the footer will shown when the required access is
|
||||
not available.
|
||||
*/
|
||||
@property (nonatomic) BOOL hideRequestContactAccessFooter;
|
||||
|
||||
/**
|
||||
If YES, the table view will scroll at the top on the next data source refresh.
|
||||
It comes back to NO after each refresh.
|
||||
|
||||
@@ -68,6 +68,9 @@
|
||||
{
|
||||
[super finalizeInit];
|
||||
|
||||
// Allow the contact access footer to be shown when necessary.
|
||||
self.hideRequestContactAccessFooter = NO;
|
||||
|
||||
// Setup `MXKViewControllerHandling` properties
|
||||
self.enableBarTintColorStatusChange = NO;
|
||||
self.rageShakeManager = [RageShakeManager sharedManager];
|
||||
@@ -211,7 +214,7 @@
|
||||
|
||||
- (void)updateFooterView
|
||||
{
|
||||
if (!BuildSettings.allowLocalContactsAccess)
|
||||
if (!BuildSettings.allowLocalContactsAccess || self.hideRequestContactAccessFooter)
|
||||
{
|
||||
self.contactsTableView.tableFooterView = [[UIView alloc] init];
|
||||
return;
|
||||
|
||||
@@ -91,6 +91,7 @@
|
||||
[titles addObject: NSLocalizedStringFromTable(@"search_people", @"Vector", nil)];
|
||||
peopleSearchViewController = [ContactsTableViewController contactsTableViewController];
|
||||
peopleSearchViewController.contactsTableViewControllerDelegate = self;
|
||||
peopleSearchViewController.hideRequestContactAccessFooter = YES;
|
||||
[viewControllers addObject:peopleSearchViewController];
|
||||
|
||||
// add Files tab
|
||||
|
||||
Reference in New Issue
Block a user