Actually store on removeDeviceIds
This commit is contained in:
parent
1806210b26
commit
7e3f1ef452
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue