A few small bugfixes

This commit is contained in:
Scott Nonnenberg
2021-05-27 13:47:39 -07:00
committed by GitHub
parent d4dc9b8e39
commit ee41e4f71d
4 changed files with 28 additions and 19 deletions

View File

@@ -3221,6 +3221,13 @@ export async function startApp(): Promise<void> {
try {
await window.textsecure.storage.protocol.removeAllConfiguration();
// This was already done in the database with removeAllConfiguration; this does it
// for all the conversation models in memory.
window.getConversations().forEach(conversation => {
// eslint-disable-next-line no-param-reassign
delete conversation.attributes.senderKeyInfo;
});
// These two bits of data are important to ensure that the app loads up
// the conversation list, instead of showing just the QR code screen.
window.Signal.Util.Registration.markEverDone();