Don't await for some background messages

This commit is contained in:
Beaudan Brown 2019-10-30 15:19:20 +11:00
parent 8ccf62ed4e
commit 653fd06451

View file

@ -782,7 +782,7 @@
response: 'accepted',
status: ['pending', 'expired'],
});
window.libloki.api.sendOnlineBroadcastMessage(this.id);
window.libloki.api.sendBackgroundMessage(this.id);
return true;
}
return false;
@ -1822,7 +1822,7 @@
await this.setSessionResetStatus(SessionResetEnum.request_received);
// send empty message, this will trigger the new session to propagate
// to the reset initiator.
await window.libloki.api.sendBackgroundMessage(this.id);
window.libloki.api.sendBackgroundMessage(this.id);
},
isSessionResetReceived() {
@ -1858,7 +1858,7 @@
async onNewSessionAdopted() {
if (this.get('sessionResetStatus') === SessionResetEnum.initiated) {
// send empty message to confirm that we have adopted the new session
await window.libloki.api.sendBackgroundMessage(this.id);
window.libloki.api.sendBackgroundMessage(this.id);
}
await this.createAndStoreEndSessionMessage({
type: 'incoming',