Storage service: save new AccountRecord fields to disk
This commit is contained in:
parent
6cfb3c9867
commit
a7c78b3b23
5 changed files with 141 additions and 13 deletions
15
ts/util/phoneNumberDiscoverability.ts
Normal file
15
ts/util/phoneNumberDiscoverability.ts
Normal file
|
@ -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
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue