Add invite button to conversation settings

pull/405/head
Niels Andriesse 4 years ago
parent 2f1e2a141b
commit 5aab5346dd

@ -312,6 +312,20 @@ CGFloat kIconViewLength = 24;
actionBlock:^{
[weakSelf showMediaGallery];
}]];
if (self.isOpenGroup) {
[mainSection addItem:[OWSTableItem
itemWithCustomCellBlock:^{
return [weakSelf
disclosureCellWithName:NSLocalizedString(@"vc_conversation_settings_invite_button_title", "")
iconName:@"ic_plus_24"
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(
OWSConversationSettingsViewController, @"invite")];
}
actionBlock:^{
[weakSelf inviteUsersToOpenGroup];
}]];
}
[mainSection addItem:[OWSTableItem
itemWithCustomCellBlock:^{
@ -1089,6 +1103,11 @@ CGFloat kIconViewLength = 24;
UIPasteboard.generalPasteboard.string = ((TSContactThread *)self.thread).contactSessionID;
}
- (void)inviteUsersToOpenGroup
{
}
- (void)showMediaGallery
{
OWSLogDebug(@"");

@ -526,3 +526,4 @@
"vc_share_loading_message" = "Preparing attachments...";
"vc_share_sending_message" = "Sending...";
"view_open_group_invitation_description" = "Open group invitation";
"vc_conversation_settings_invite_button_title" = "Add Members";

Loading…
Cancel
Save