Skip to content

Commit

Permalink
swift
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 4, 2024
1 parent 8085f73 commit 15e1d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deltachat-ios/Controller/WebxdcSelector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 15e1d42

Please sign in to comment.