mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Crypto: Do not decrypt synchronously. It asynchronously happens upstream now
#4306)
This commit is contained in:
@@ -220,12 +220,6 @@ final class EditHistoryViewModel: EditHistoryViewModelType {
|
||||
}
|
||||
|
||||
private func process(event: MXEvent, ts: UInt64) -> EditHistoryMessage? {
|
||||
|
||||
if event.isEncrypted && event.clear == nil {
|
||||
if self.session.decryptEvent(event, inTimeline: nil) == false {
|
||||
print("[EditHistoryViewModel] processEditEvent: Fail to decrypt event: \(event.eventId ?? "")")
|
||||
}
|
||||
}
|
||||
|
||||
let formatterError = UnsafeMutablePointer<MXKEventFormatterError>.allocate(capacity: 1)
|
||||
guard let message = self.formatter.attributedString(from: event, with: nil, error: formatterError) else {
|
||||
|
||||
Reference in New Issue
Block a user