Two small changes

* Signed prekey rotation: better logging, let => const

* Ensure that we remove sync messages from cache
This commit is contained in:
Scott Nonnenberg 2019-07-19 06:35:04 -07:00 committed by Ken Powers
parent 5e6d5937f7
commit df74103335
2 changed files with 6 additions and 4 deletions

View file

@ -1467,10 +1467,12 @@
window.log.warn(
`onSentMessage: Received update transcript, but no existing entry for message ${message.idForLogging()}. Dropping.`
);
event.confirm();
} else if (existing) {
window.log.warn(
`onSentMessage: Received duplicate transcript for message ${message.idForLogging()}, but it was not an update transcript. Dropping.`
);
event.confirm();
} else {
await ConversationController.getOrCreateAndWait(
messageDescriptor.id,