mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge branch 'charlesmchen/contactSharingFeatureFlag'
This commit is contained in:
commit
d4bec2d068
|
@ -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];
|
||||
|
|
|
@ -13,6 +13,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
@class TSAttachment;
|
||||
@class YapDatabaseReadWriteTransaction;
|
||||
|
||||
extern BOOL kIsSendingContactSharesEnabled;
|
||||
|
||||
typedef NS_ENUM(NSUInteger, OWSContactPhoneType) {
|
||||
OWSContactPhoneType_Home = 1,
|
||||
OWSContactPhoneType_Mobile,
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
BOOL kIsSendingContactSharesEnabled = YES;
|
||||
|
||||
@interface OWSContactPhoneNumber ()
|
||||
|
||||
@property (nonatomic) OWSContactPhoneType phoneType;
|
||||
|
|
Loading…
Reference in a new issue