mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Add feature flag for contact sharing.
This commit is contained in:
parent
f4ee688401
commit
459101c20e
1 changed files with 14 additions and 11 deletions
|
@ -3615,17 +3615,20 @@ typedef enum : NSUInteger {
|
|||
[gifAction setValue:gifImage forKey:@"image"];
|
||||
[actionSheetController addAction:gifAction];
|
||||
|
||||
UIAlertAction *chooseContactAction = [UIAlertAction
|
||||
actionWithTitle:NSLocalizedString(@"ATTACHMENT_MENU_CONTACT_BUTTON", @"attachment menu option to send contact")
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction *_Nonnull action) {
|
||||
[self chooseContactForSending];
|
||||
}];
|
||||
// TODO - proper image
|
||||
UIImage *chooseContactImage = [UIImage imageNamed:@"actionsheet_camera_black"];
|
||||
OWSAssert(takeMediaImage);
|
||||
[chooseContactAction setValue:chooseContactImage forKey:@"image"];
|
||||
[actionSheetController addAction:chooseContactAction];
|
||||
if (kIsSendingContactSharesEnabled) {
|
||||
UIAlertAction *chooseContactAction =
|
||||
[UIAlertAction actionWithTitle:NSLocalizedString(@"ATTACHMENT_MENU_CONTACT_BUTTON",
|
||||
@"attachment menu option to send contact")
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction *_Nonnull action) {
|
||||
[self chooseContactForSending];
|
||||
}];
|
||||
// TODO - proper image
|
||||
UIImage *chooseContactImage = [UIImage imageNamed:@"actionsheet_camera_black"];
|
||||
OWSAssert(takeMediaImage);
|
||||
[chooseContactAction setValue:chooseContactImage forKey:@"image"];
|
||||
[actionSheetController addAction:chooseContactAction];
|
||||
}
|
||||
|
||||
[self dismissKeyBoard];
|
||||
[self presentViewController:actionSheetController animated:true completion:nil];
|
||||
|
|
Loading…
Reference in a new issue