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