Implement megaphone conditional standard_donate with local device createdAt

This commit is contained in:
ayumi-signal
2026-01-15 09:40:22 -08:00
committed by GitHub
parent 5528cd37c0
commit 1cfda1f210
16 changed files with 452 additions and 19 deletions

View File

@@ -152,6 +152,14 @@ export class User {
return parseInt(value, 10);
}
public getDeviceCreatedAt(): number | undefined {
return this.storage.get('deviceCreatedAt');
}
public async setDeviceCreatedAt(createdAt: number): Promise<void> {
return this.storage.put('deviceCreatedAt', createdAt);
}
public getDeviceName(): string | undefined {
return this.storage.get('device_name');
}