From 3f650a1d159cb735031f0e88bd52bd4692dc4b19 Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 4 May 2020 12:55:30 +1000 Subject: [PATCH] prevent note to self on unlink from slave --- js/background.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/background.js b/js/background.js index e9f43c901..ddfa0a38e 100644 --- a/js/background.js +++ b/js/background.js @@ -1365,6 +1365,11 @@ }); Whisper.events.on('deviceUnpairingRequested', async (pubKey, callback) => { + const isSecondaryDevice = !!textsecure.storage.get('isSecondaryDevice'); + if (isSecondaryDevice){ + return; + } + await libloki.storage.removePairingAuthorisationForSecondaryPubKey( pubKey );