Add GIF metadata warning

pull/81/head
Niels Andriesse 5 years ago
parent 442c1b9996
commit ca82cd758d

@ -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);

@ -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.";

Loading…
Cancel
Save