Support device name change sync message
This commit is contained in:
parent
1c4e7bc85d
commit
96de2c2a38
9 changed files with 190 additions and 12 deletions
|
@ -153,6 +153,10 @@ export class User {
|
|||
return this.storage.get('device_name');
|
||||
}
|
||||
|
||||
public async setDeviceName(name: string): Promise<void> {
|
||||
return this.storage.put('device_name', name);
|
||||
}
|
||||
|
||||
public async setDeviceNameEncrypted(): Promise<void> {
|
||||
return this.storage.put('deviceNameEncrypted', true);
|
||||
}
|
||||
|
@ -175,9 +179,7 @@ export class User {
|
|||
this.storage.put('uuid_id', `${aci}.${deviceId}`),
|
||||
this.storage.put('password', password),
|
||||
this.setPni(pni),
|
||||
deviceName
|
||||
? this.storage.put('device_name', deviceName)
|
||||
: Promise.resolve(),
|
||||
deviceName ? this.setDeviceName(deviceName) : Promise.resolve(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue