forked from signalapp/Signal-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storage service: save new AccountRecord fields to disk
- Loading branch information
1 parent
6cfb3c9
commit a7c78b3
Showing
5 changed files
with
141 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2021 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
import { makeEnumParser } from './enum'; | ||
|
||
// These strings are saved to disk, so be careful when changing them. | ||
export enum PhoneNumberDiscoverability { | ||
Discoverable = 'Discoverable', | ||
NotDiscoverable = 'NotDiscoverable', | ||
} | ||
|
||
export const parsePhoneNumberDiscoverability = makeEnumParser( | ||
PhoneNumberDiscoverability, | ||
PhoneNumberDiscoverability.Discoverable | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2021 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
import { makeEnumParser } from './enum'; | ||
|
||
// These strings are saved to disk, so be careful when changing them. | ||
export enum PhoneNumberSharingMode { | ||
Everybody = 'Everybody', | ||
ContactsOnly = 'ContactsOnly', | ||
Nobody = 'Nobody', | ||
} | ||
|
||
export const parsePhoneNumberSharingMode = makeEnumParser( | ||
PhoneNumberSharingMode, | ||
PhoneNumberSharingMode.Everybody | ||
); |