forked from mystiq/hydrogen-web
setup new dehydrated device when claiming one
This commit is contained in:
parent
0749073120
commit
faa0246e28
1 changed files with 1 additions and 0 deletions
|
@ -248,6 +248,7 @@ export class SessionContainer {
|
|||
await this._session.load(log);
|
||||
if (dehydratedDevice) {
|
||||
await log.wrap("dehydrateIdentity", log => this._session.dehydrateIdentity(dehydratedDevice, log));
|
||||
await this._session.setupDehydratedDevice(dehydratedDevice.key, log);
|
||||
} else if (!this._session.hasIdentity) {
|
||||
this._status.set(LoadStatus.SessionSetup);
|
||||
await log.wrap("createIdentity", log => this._session.createIdentity(log));
|
||||
|
|
Loading…
Reference in a new issue