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
16
ts/util/phoneNumberSharingMode.ts
Normal file
16
ts/util/phoneNumberSharingMode.ts
Normal file
|
@ -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
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue