Prevent "secure session reset succeeded" message from being cleaned up at startup

pull/66/head
sachaaaaa 6 years ago
parent f2e1b9b8de
commit 962c947605

@ -347,6 +347,10 @@
return; return;
} }
if (message.isEndSession()) {
return;
}
if (message.hasErrors()) { if (message.hasErrors()) {
return; return;
} }

@ -1494,7 +1494,7 @@
// Only create a new message if *we* initiated the session reset. // Only create a new message if *we* initiated the session reset.
// On the receiver side, the actual message containing the END_SESSION flag // On the receiver side, the actual message containing the END_SESSION flag
// will ensure the "session reset" message will be added to their conversation. // will ensure the "session reset" message will be added to their conversation.
if (this.get('sessionResetStatus') === SessionResetEnum.none) { if (this.get('sessionResetStatus') !== SessionResetEnum.request_received) {
await this.onSessionResetInitiated(); await this.onSessionResetInitiated();
const message = await this.createAndStoreEndSessionMessage('ongoing'); const message = await this.createAndStoreEndSessionMessage('ongoing');
const options = this.getSendOptions(); const options = this.getSendOptions();

Loading…
Cancel
Save