From d793c008b575813c2a904250feceb217d06a88a4 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 20 Jul 2018 16:52:15 -0400 Subject: [PATCH] Always touch the thread when updating a message. --- .../src/Messages/Interactions/TSOutgoingMessage.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m b/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m index 24259c7b7..73fdc5d25 100644 --- a/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m +++ b/SignalServiceKit/src/Messages/Interactions/TSOutgoingMessage.m @@ -524,6 +524,15 @@ NSString *NSStringForOutgoingMessageRecipientState(OWSOutgoingMessageRecipientSt #pragma mark - Update With... Methods +- (void)applyChangeToSelfAndLatestCopy:(YapDatabaseReadWriteTransaction *)transaction + changeBlock:(void (^)(id))changeBlock +{ + OWSAssert(transaction); + + [super applyChangeToSelfAndLatestCopy:transaction changeBlock:changeBlock]; + [self touchThreadWithTransaction:transaction]; +} + - (void)updateWithSendingError:(NSError *)error { OWSAssert(error);