From 5bbf7d85b21629ce210d9202bb29ac1793cff4e8 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 3 May 2019 16:54:38 +1000 Subject: [PATCH] Add new conversation button --- .../ViewControllers/NewContactThreadViewController.m | 12 ++++++++++++ Signal/translations/en.lproj/Localizable.strings | 1 + 2 files changed, 13 insertions(+) diff --git a/Signal/src/ViewControllers/NewContactThreadViewController.m b/Signal/src/ViewControllers/NewContactThreadViewController.m index 154617a2e..e1421e0d4 100644 --- a/Signal/src/ViewControllers/NewContactThreadViewController.m +++ b/Signal/src/ViewControllers/NewContactThreadViewController.m @@ -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]; } diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index 15ae30c0a..dc3a312f6 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -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";