Hook up new conversation button

pull/7/head
Niels Andriesse 6 years ago
parent a284f3deb6
commit 29ac92e961

@ -402,7 +402,12 @@ NS_ASSUME_NONNULL_BEGIN
addItem:[OWSTableItem disclosureItemWithText:NSLocalizedString(@"Start a Conversation", @"")
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"start_conversation")
customRowHeight:UITableViewAutomaticDimension
actionBlock:^{ NSLog(@"Start a Conversation"); }]];
actionBlock:^{
typeof(self) strongSelf = weakSelf;
if (!strongSelf) { return; }
NSString *publicKey = strongSelf.searchBar.text;
[strongSelf newConversationWithRecipientId:publicKey];
}]];
[contents addSection:newConversationSection];
// ========

Loading…
Cancel
Save