Merge pull request #1808 from vector-im/ShareExtensionManager_fix_crash

Fix crash in ShareExtensionManager
This commit is contained in:
manuroe
2018-03-08 18:29:58 +01:00
committed by GitHub
@@ -221,7 +221,15 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
{
typeof(self) self = weakSelf;
itemProvider.isLoaded = YES;
[self.pendingImages addObject:imageData];
if (imageData)
{
[self.pendingImages addObject:imageData];
}
else
{
NSLog(@"[ShareExtensionManager] sendContentToRoom: failed to loadItemForTypeIdentifier. Error: %@", error);
}
if ([self areAttachmentsFullyLoaded])
{