Fixes assert being hit when entering a conversation on iOS 8
This commit is contained in:
parent
a95e971055
commit
fb98769002
|
|
@ -93,10 +93,7 @@ public class ChatCollectionViewLayout: UICollectionViewLayout {
|
|||
}
|
||||
|
||||
public override func collectionViewContentSize() -> CGSize {
|
||||
if self.layoutNeedsUpdate {
|
||||
self.prepareLayout()
|
||||
}
|
||||
return self.layoutModel.contentSize
|
||||
return self.layoutModel?.contentSize ?? .zero
|
||||
}
|
||||
|
||||
override public func layoutAttributesForElementsInRect(rect: CGRect) -> [UICollectionViewLayoutAttributes]? {
|
||||
|
|
|
|||
Loading…
Reference in New Issue