Merge branch 'mkirk/fix-downloading-group-attachments-view'

pull/1/head
Michael Kirk 8 years ago
commit 0ccc1a69b4

@ -40,6 +40,14 @@ class AttachmentPointerAdapter: JSQMediaItem, OWSMessageEditing {
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 {
return CGSize(width: 200, height: 90)
}

Loading…
Cancel
Save