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

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

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

Loading…
Cancel
Save