mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 16:08:34 +01:00
Implement megaphone conditional standard_donate with local device createdAt
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user