|
|
@ -40,6 +40,14 @@ class AttachmentPointerAdapter: JSQMediaItem, OWSMessageEditing {
|
|
|
|
assertionFailure()
|
|
|
|
assertionFailure()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: JSQ Overrides
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override func mediaHash() -> UInt {
|
|
|
|
|
|
|
|
// In objc, `hash` returns NSUInteger, but in Swift it return an Int.
|
|
|
|
|
|
|
|
assert(self.attachmentPointer.uniqueId != nil)
|
|
|
|
|
|
|
|
return UInt(bitPattern: self.attachmentPointer.uniqueId.hash)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override func mediaViewDisplaySize() -> CGSize {
|
|
|
|
override func mediaViewDisplaySize() -> CGSize {
|
|
|
|
return CGSize(width: 200, height: 90)
|
|
|
|
return CGSize(width: 200, height: 90)
|
|
|
|
}
|
|
|
|
}
|
|
|
|