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