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() {