mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add support for attaching NSData objects to a feedback compose view
This commit is contained in:
@@ -103,6 +103,8 @@
|
||||
} else if ([item isKindOfClass:[UIImage class]]) {
|
||||
UIImage *image = item;
|
||||
[self.attachments addObject:[BITFeedbackMessageAttachment attachmentWithData:UIImageJPEGRepresentation(image, 0.7f) contentType:@"image/jpeg"]];
|
||||
} else if ([item isKindOfClass:[NSData class]]) {
|
||||
[self.attachments addObject:[BITFeedbackMessageAttachment attachmentWithData:item contentType:@"'application/octet-stream'"]];
|
||||
} else {
|
||||
BITHockeyLog(@"Unknown item type %@", item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user