Skip to content

Commit

Permalink
Fixed issue with OMEMO encrypted attachments sent as https:// links i…
Browse files Browse the repository at this point in the history
…nstead of aesgcm:// #beagleim-461 #83
  • Loading branch information
hantu85 committed Aug 29, 2022
1 parent 989152a commit d133a53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BeagleIM/utils/SharingTaskManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ class AbstractSharingTaskItem: NSObject, URLSessionDelegate {
case .invalidResponseCode(let uploadedUrl):
task.askForInvalidHttpResponse(url: uploadedUrl, completionHandler: { result1 in
if result1 {
self.sendAttachmentToConversation(originalUrl: originalUrl, filename: fileInfo.filenameWithSuffix, uploadedUrl: uploadedUrl, filesize: Int64(filesize), mimeType: mimeType, completionHandler: completionHandler);
let urlToSend = urlConverter?(uploadedUrl) ?? uploadedUrl;
self.sendAttachmentToConversation(originalUrl: originalUrl, filename: fileInfo.filenameWithSuffix, uploadedUrl: urlToSend, filesize: Int64(filesize), mimeType: mimeType, completionHandler: completionHandler);
self.completed(with: .success(uploadedUrl));
} else {
completionHandler?();
Expand Down

0 comments on commit d133a53

Please sign in to comment.