Add new conversation button

This commit is contained in:
Niels Andriesse 2019-05-03 16:54:38 +10:00
parent 1431efba23
commit 5bbf7d85b2
2 changed files with 13 additions and 0 deletions

View File

@ -393,6 +393,18 @@ NS_ASSUME_NONNULL_BEGIN
BOOL hasSearchText = self.searchText.length > 0;
if (hasSearchText) {
// Loki:
// ========
OWSTableSection *newConversationSection = [OWSTableSection new];
[newConversationSection
addItem:[OWSTableItem disclosureItemWithText:NSLocalizedString(@"Start a Conversation", @"")
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"start_conversation")
customRowHeight:UITableViewAutomaticDimension
actionBlock:^{ NSLog(@"Start a Conversation"); }]];
[contents addSection:newConversationSection];
// ========
for (OWSTableSection *section in [self contactsSectionsForSearch]) {
[contents addSection:section];
}

View File

@ -2565,3 +2565,4 @@
"There appears to be an invalid word in your mnemonic. Please check what you entered and try again." = "There appears to be an invalid word in your mnemonic. Please check what you entered and try again.";
"Your mnemonic couldn't be verified. Please check what you entered and try again." = "Your mnemonic couldn't be verified. Please check what you entered and try again.";
"Search by name or public key" = "Search by name or public key";
"Start a Conversation" = "Start a Conversation";