Pass mode in unlinkAndDisconnect event listener

This commit is contained in:
Fedor Indutny 2021-08-31 13:34:32 -07:00 committed by GitHub
parent 9890a51f25
commit 62cf51c060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();