From c15ddf85f86459c36d7974bafc884ffbc7f4bdc7 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 1 Aug 2018 09:47:54 -0400 Subject: [PATCH] Respond to CR. --- .../src/Messages/Interactions/TSOutgoingMessage.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m b/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m index 53e81b7bf..8f1f96a06 100644 --- a/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m +++ b/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m @@ -356,17 +356,17 @@ NSString *NSStringForOutgoingMessageRecipientState(OWSOutgoingMessageRecipientSt - (void)dealloc { - [self cleanUpTemporaryAttachmentsIfNecessary]; + [self removeTemporaryAttachments]; } // Each message has the responsibility for eagerly cleaning up its attachments. // Normally this is done in [TSMessage removeWithTransaction], but that doesn't // apply for "transient", unsaved messages (i.e. shouldBeSaved == NO). These // messages should clean up their attachments upon deallocation. -- (void)cleanUpTemporaryAttachmentsIfNecessary +- (void)removeTemporaryAttachments { if (self.shouldBeSaved) { - // Message in not transient; no need to clean up attachments. + // Message is not transient; no need to clean up attachments. return; } NSArray *_Nullable attachmentIds = self.attachmentIds;