Fix squashed "downloading" bubbles in groups

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 6672886ede
commit 077038b6cc

@ -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