A number of performance tweaks

This commit is contained in:
Scott Nonnenberg 2019-09-06 12:16:54 -07:00
parent 07689379cb
commit e011589a5e
3 changed files with 29 additions and 28 deletions

View file

@ -409,12 +409,14 @@
await this.initialPromise;
const verified = await this.safeGetVerified();
this.set({ verified });
if (this.get('verified') !== verified) {
this.set({ verified });
// we don't await here because we don't need to wait for this to finish
window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,
});
// we don't await here because we don't need to wait for this to finish
window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,
});
}
return;
}