Revision 8d76e2e3 ChatSecure/Classes/Views/Cells/MediaDownloadView.swift

View differences:

ChatSecure/Classes/Views/Cells/MediaDownloadView.swift
43 43
        
44 44
        self.downloadAction = { [weak self] view, sender in
45 45
            self?.downloadButton.isEnabled = false
46
            var xmpp: OTRXMPPManager? = nil
46
            var xmpp: XMPPManager? = nil
47 47
            OTRDatabaseManager.shared.readOnlyDatabaseConnection?.read { transaction in
48 48
                guard let thread = message.threadOwner(with: transaction) else { return }
49 49
                guard let account = thread.account(with: transaction) else { return }
50
                xmpp = OTRProtocolManager.shared.protocol(for: account) as? OTRXMPPManager
50
                xmpp = OTRProtocolManager.shared.protocol(for: account) as? XMPPManager
51 51
                xmpp?.fileTransferManager.downloadMediaIfNeeded(message)
52 52
            }
53 53
        }

Also available in: Unified diff