2021-01-22 11:19:31 +00:00
|
|
|
//
|
|
|
|
// Copyright 2020 New Vector Ltd
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "MatrixContactsDataSource.h"
|
|
|
|
|
2021-10-26 15:42:33 +00:00
|
|
|
#import "GeneratedInterface-Swift.h"
|
2021-09-28 05:40:01 +00:00
|
|
|
|
2021-01-22 11:19:31 +00:00
|
|
|
@implementation MatrixContactsDataSource
|
|
|
|
|
|
|
|
- (instancetype)init
|
|
|
|
{
|
|
|
|
self = [super init];
|
|
|
|
if (self) {
|
|
|
|
hideNonMatrixEnabledContacts = YES;
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2021-01-22 16:22:53 +00:00
|
|
|
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
|
|
|
|
{
|
|
|
|
if (section == filteredLocalContactsSection)
|
|
|
|
{
|
2021-09-28 05:40:01 +00:00
|
|
|
return [VectorL10n contactsAddressBookSection];
|
2021-01-22 16:22:53 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-09-28 05:40:01 +00:00
|
|
|
return [VectorL10n callTransferContactsAll];
|
2021-01-22 16:22:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-22 11:19:31 +00:00
|
|
|
@end
|