Merge branch 'mkirk/fix-message-detail-view'

pull/1/head
sdkjfhsdkjhfsdlkjhfsdf 7 years ago
commit 697fc4ff4b

@ -400,8 +400,7 @@ class MessageDetailViewController: OWSViewController, UIScrollViewDelegate {
}
private func fetchAttachment(transaction: YapDatabaseReadTransaction) -> TSAttachment? {
guard let attachmentId = message.attachmentIds[0] as? String else {
owsFail("Invalid attachment")
guard let attachmentId = message.attachmentIds.firstObject as? String else {
return nil
}

Loading…
Cancel
Save