Skip to content

Commit e6f5ad4

Browse files
committed
feat: add isLidMigrated method to check account migration status
1 parent 0ce12bc commit e6f5ad4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/api/layers/host.layer.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,4 +608,16 @@ export class HostLayer {
608608
WPP.conn.getBuildConstants()
609609
);
610610
}
611+
612+
/**
613+
* Check if the account has been migrated to LID
614+
* @category Host
615+
* @returns true if the account has been migrated to LID, false otherwise
616+
*/
617+
public async isLidMigrated(): Promise<boolean> {
618+
return await evaluateAndReturn(
619+
this.page,
620+
() => WPP.whatsapp.functions.isLidMigrated() as boolean
621+
);
622+
}
611623
}

0 commit comments

Comments
 (0)