From 15e1d4286b7f89454439a3d42858da1a0b94a38f Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 4 Apr 2024 17:40:54 +0000 Subject: [PATCH] swift --- deltachat-ios/Controller/WebxdcSelector.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-ios/Controller/WebxdcSelector.swift b/deltachat-ios/Controller/WebxdcSelector.swift index c3497821e..85c307742 100644 --- a/deltachat-ios/Controller/WebxdcSelector.swift +++ b/deltachat-ios/Controller/WebxdcSelector.swift @@ -106,7 +106,7 @@ class WebxdcSelector: UIViewController { var deduplicatedMessageHashes: [String: Int] = [:] DispatchQueue.global(qos: .userInteractive).async { [weak self] in guard let self else { return } - let mediaMessageIds = dcContext.getChatMedia(chatId: 0, messageType: DC_MSG_WEBXDC, messageType2: 0, messageType3: 0).reversed() + let mediaMessageIds = self.dcContext.getChatMedia(chatId: 0, messageType: DC_MSG_WEBXDC, messageType2: 0, messageType3: 0).reversed() for id in mediaMessageIds { guard let filename = self.dcContext.getMessage(id: id).fileURL else { continue } if let hash = try? NSData(contentsOf: filename).sha1() {