mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Fix crash in ShareExtensionManager
Reported in Xcode organiser so there is no detail how it happened. The fix is a workaround to avoid the crash but it does not help the user for sending their image.
This commit is contained in:
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user