CR: continue to delete session when receiving an EndSession

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent cfd9b84e65
commit 0df5ea3ee5

@ -47,7 +47,7 @@ NS_ASSUME_NONNULL_BEGIN
if (transcript.isEndSessionMessage) {
DDLogInfo(@"%@ EndSession was sent to recipient: %@.", self.tag, transcript.recipientId);
[self.storageManager archiveAllSessionsForContact:transcript.recipientId];
[self.storageManager deleteAllSessionsForContact:transcript.recipientId];
[[[TSInfoMessage alloc] initWithTimestamp:transcript.timestamp
inThread:transcript.thread
messageType:TSInfoMessageTypeSessionDidEnd] save];

@ -708,7 +708,7 @@ NS_ASSUME_NONNULL_BEGIN
}];
dispatch_async([OWSDispatch sessionStoreQueue], ^{
[[TSStorageManager sharedManager] archiveAllSessionsForContact:endSessionEnvelope.source];
[[TSStorageManager sharedManager] deleteAllSessionsForContact:endSessionEnvelope.source];
});
}

Loading…
Cancel
Save