|
|
@ -3615,17 +3615,20 @@ typedef enum : NSUInteger {
|
|
|
|
[gifAction setValue:gifImage forKey:@"image"];
|
|
|
|
[gifAction setValue:gifImage forKey:@"image"];
|
|
|
|
[actionSheetController addAction:gifAction];
|
|
|
|
[actionSheetController addAction:gifAction];
|
|
|
|
|
|
|
|
|
|
|
|
UIAlertAction *chooseContactAction = [UIAlertAction
|
|
|
|
if (kIsSendingContactSharesEnabled) {
|
|
|
|
actionWithTitle:NSLocalizedString(@"ATTACHMENT_MENU_CONTACT_BUTTON", @"attachment menu option to send contact")
|
|
|
|
UIAlertAction *chooseContactAction =
|
|
|
|
style:UIAlertActionStyleDefault
|
|
|
|
[UIAlertAction actionWithTitle:NSLocalizedString(@"ATTACHMENT_MENU_CONTACT_BUTTON",
|
|
|
|
handler:^(UIAlertAction *_Nonnull action) {
|
|
|
|
@"attachment menu option to send contact")
|
|
|
|
[self chooseContactForSending];
|
|
|
|
style:UIAlertActionStyleDefault
|
|
|
|
}];
|
|
|
|
handler:^(UIAlertAction *_Nonnull action) {
|
|
|
|
// TODO - proper image
|
|
|
|
[self chooseContactForSending];
|
|
|
|
UIImage *chooseContactImage = [UIImage imageNamed:@"actionsheet_camera_black"];
|
|
|
|
}];
|
|
|
|
OWSAssert(takeMediaImage);
|
|
|
|
// TODO - proper image
|
|
|
|
[chooseContactAction setValue:chooseContactImage forKey:@"image"];
|
|
|
|
UIImage *chooseContactImage = [UIImage imageNamed:@"actionsheet_camera_black"];
|
|
|
|
[actionSheetController addAction:chooseContactAction];
|
|
|
|
OWSAssert(takeMediaImage);
|
|
|
|
|
|
|
|
[chooseContactAction setValue:chooseContactImage forKey:@"image"];
|
|
|
|
|
|
|
|
[actionSheetController addAction:chooseContactAction];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[self dismissKeyBoard];
|
|
|
|
[self dismissKeyBoard];
|
|
|
|
[self presentViewController:actionSheetController animated:true completion:nil];
|
|
|
|
[self presentViewController:actionSheetController animated:true completion:nil];
|
|
|
|