diff --git a/js/modules/types/message.js b/js/modules/types/message.js index ff1b1adac07e..f8d5f40c144a 100644 --- a/js/modules/types/message.js +++ b/js/modules/types/message.js @@ -209,9 +209,9 @@ exports.createAttachmentDataWriter = (writeExistingAttachmentData) => { } const lastVersionWithAttachmentDataInMemory = 2; - const willHaveAttachmentsSavedOnFileSystemDuringUpgrade = + const willAttachmentsGoToFileSystemOnUpgrade = message.schemaVersion <= lastVersionWithAttachmentDataInMemory; - if (willHaveAttachmentsSavedOnFileSystemDuringUpgrade) { + if (willAttachmentsGoToFileSystemOnUpgrade) { return message; }