mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Don't await for some background messages
This commit is contained in:
parent
8ccf62ed4e
commit
653fd06451
1 changed files with 3 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue