Actually store on removeDeviceIds

pull/749/head
Matt Corallo 10 years ago committed by lilia
parent 1806210b26
commit 7e3f1ef452

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

Loading…
Cancel
Save