minor optimisation on fetching attachment from database

pull/803/head
ryanzhao 1 year ago
parent d0ba22dc4f
commit ee8008ff4d

@ -1612,7 +1612,7 @@ extension ConversationVC:
let quotedInteraction = try? quote.originalInteraction.fetchOne(db)
{
let attachment: Attachment? = {
if let attachment = try? quotedInteraction.attachments.fetchAll(db).first {
if let attachment = try? quotedInteraction.attachments.fetchOne(db) {
return attachment
}
if

Loading…
Cancel
Save