From 7e3f1ef452826bca924805ae72e2fc03482d8f2b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 19 Jan 2015 09:57:05 -1000 Subject: [PATCH] Actually store on removeDeviceIds --- libtextsecure/storage/devices.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libtextsecure/storage/devices.js b/libtextsecure/storage/devices.js index a3aac4e4b..382332a70 100644 --- a/libtextsecure/storage/devices.js +++ b/libtextsecure/storage/devices.js @@ -92,6 +92,13 @@ if (devicesRemoved != deviceIdsToRemove.length) throw new Error("Tried to remove unknown device"); + + if (newDevices.length === 0) + textsecure.storage.removeEncrypted("devices" + number); + else { + map.devices = newDevices; + textsecure.storage.putEncrypted("devices" + number, map); + } } };