diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index c8ee5809f..e3c9d2461 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -2826,6 +2826,18 @@ typedef enum : NSUInteger { #pragma mark - Attachment Picking: GIFs +- (void)showGIFMetadataWarning +{ + NSString *title = NSLocalizedString(@"Search GIFs?", @""); + NSString *message = NSLocalizedString(@"You will not have full metadata protection when sending or receiving GIFs.", @""); + UIAlertController *alert = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert]; + [alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK", @"") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { + [self showGifPicker]; + }]]; + [alert addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", @"") style:UIAlertActionStyleDefault handler:nil]]; + [self presentViewController:alert animated:YES completion:nil]; +} + - (void)showGifPicker { GifPickerViewController *view = @@ -3533,7 +3545,7 @@ typedef enum : NSUInteger { accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"send_gif") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { - [self showGifPicker]; + [self showGIFMetadataWarning]; }]; UIImage *gifImage = [UIImage imageNamed:@"actionsheet_gif_black"]; OWSAssertDebug(gifImage); diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index c0297e446..dccb00c0d 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -2799,3 +2799,5 @@ "Enable Link Previews?" = "Enable Link Previews?"; "You will not have full metadata protection when sending or receiving link previews." = "You will not have full metadata protection when sending or receiving link previews."; "Open groups can be joined by anyone and do not provide full metadata protection" = "Open groups can be joined by anyone and do not provide full metadata protection"; +"Search GIFs?" = "Search GIFs?"; +"You will not have full metadata protection when sending or receiving GIFs." = "You will not have full metadata protection when sending or receiving GIFs.";