Actually store on removeDeviceIds

This commit is contained in:
Matt Corallo 2015-01-19 09:57:05 -10:00 committed by lilia
parent 1806210b26
commit 7e3f1ef452

View file

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