forked from Ivasoft/mattermost-mobile
Fix share screenshot on ios 26 (#9068)
* Fix share screenshot on ios 26 * Address copilot feedback * Address more copilot comments
This commit is contained in:
committed by
GitHub
parent
882097a668
commit
2e5bbb9f62
@@ -148,6 +148,12 @@ class LocalFileManager {
|
||||
var attachment = self?.saveAttachmentImage(data) {
|
||||
attachment.imagePixels = self?.getImagePixels(image: uiImage)
|
||||
models.append(attachment)
|
||||
} else if let data = image as? Data,
|
||||
var attachment = self?.saveAttachmentImage(data),
|
||||
let uiImage = UIImage(data: data)
|
||||
{
|
||||
attachment.imagePixels = self?.getImagePixels(image: uiImage)
|
||||
models.append(attachment)
|
||||
}
|
||||
}
|
||||
self?.dispatchGroup.leave()
|
||||
|
||||
Reference in New Issue
Block a user