Skip to content

Commit

Permalink
Pass mode in unlinkAndDisconnect event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Aug 31, 2021
1 parent 9890a51 commit 62cf51c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,9 @@ export async function startApp(): Promise<void> {
window._.debounce(enqueueReconnectToWebSocket, 1000, { maxWait: 5000 })
);

window.Whisper.events.on('unlinkAndDisconnect', unlinkAndDisconnect);
window.Whisper.events.on('unlinkAndDisconnect', () => {
unlinkAndDisconnect(RemoveAllConfiguration.Full);
});

function runStorageService() {
window.Signal.Services.enableStorageService();
Expand Down

0 comments on commit 62cf51c

Please sign in to comment.