Use single WebAPI instance across the app

This commit is contained in:
Fedor Indutny
2021-07-23 10:23:50 -07:00
committed by GitHub
parent 79633a9e7b
commit fdec47d637
19 changed files with 218 additions and 308 deletions
+1 -2
View File
@@ -1678,8 +1678,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
});
if (hadSignedPreKeyRotationError) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
promises.push(window.getAccountManager()!.rotateSignedPreKey());
promises.push(window.getAccountManager().rotateSignedPreKey());
}
attributesToUpdate.sendStateByConversationId = sendStateByConversationId;