|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
|
|
#import "AttachmentSharing.h"
|
|
|
|
|
#import "TSAttachmentStream.h"
|
|
|
|
|
#import "UIUtil.h"
|
|
|
|
|
|
|
|
|
|
@implementation AttachmentSharing
|
|
|
|
|
|
|
|
|
@ -27,8 +28,11 @@
|
|
|
|
|
|
|
|
|
|
[activityViewController setCompletionWithItemsHandler:^(UIActivityType __nullable activityType,
|
|
|
|
|
BOOL completed,
|
|
|
|
|
NSArray * __nullable returnedItems,
|
|
|
|
|
NSError * __nullable activityError) {
|
|
|
|
|
NSArray *__nullable returnedItems,
|
|
|
|
|
NSError *__nullable activityError) {
|
|
|
|
|
|
|
|
|
|
DDLogDebug(@"%@ applying signal appearence", self.tag);
|
|
|
|
|
[UIUtil applySignalAppearence];
|
|
|
|
|
|
|
|
|
|
if (activityError) {
|
|
|
|
|
DDLogInfo(@"%@ Failed to share with activityError: %@", self.tag, activityError);
|
|
|
|
@ -47,7 +51,10 @@
|
|
|
|
|
OWSAssert(fromViewController);
|
|
|
|
|
[fromViewController presentViewController:activityViewController
|
|
|
|
|
animated:YES
|
|
|
|
|
completion:nil];
|
|
|
|
|
completion:^{
|
|
|
|
|
DDLogDebug(@"%@ applying default system appearence", self.tag);
|
|
|
|
|
[UIUtil applyDefaultSystemAppearence];
|
|
|
|
|
}];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#pragma mark - Logging
|
|
|
|
|