         }
 
         return .textAttachment
+    }
+
+    var isFile: Bool {
+        return titleLinkDownload && !titleLink.isEmpty
     }
 
     @objc dynamic var collapsed: Bool = false

import Foundation
import SwiftyJSON
import RealmSwift

class Attachment: BaseModel {
    var type: MessageType {

        let documents = path[0]
        return documents.appendingPathComponent("\(identifier ?? "temp").png")
    }

    var fields = List<AttachmentField>()

    override class func ignoredProperties() -> [String] {
        return ["videoThumb"]
