From 195e9b777cd27a9d357035b4c1c7e38e4d7cf8e1 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Wed, 4 Apr 2018 19:03:00 -0400 Subject: [PATCH] Rename `willHaveAttachmentsSavedOnFileSystemDuringUpgrade` New name: `willAttachmentsGoToFileSystemOnUpgrade` --- js/modules/types/message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }