Unlink on device conflict 4409

This commit is contained in:
Jamie Kyle
2024-02-21 12:33:56 -08:00
committed by GitHub
parent e12b5fd0af
commit a27890b988
2 changed files with 11 additions and 0 deletions

View File

@@ -1320,6 +1320,10 @@ export function initialize({
window.Whisper.events.trigger('unlinkAndDisconnect');
});
socketManager.on('deviceConflict', () => {
window.Whisper.events.trigger('unlinkAndDisconnect');
});
if (useWebSocket) {
void socketManager.authenticate({ username, password });
}