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

This commit is contained in:
sdkjfhsdkjhfsdlkjhfsdf 2017-12-22 22:43:35 -06:00
commit 697fc4ff4b

View File

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