Storage service: save new AccountRecord fields to disk

This commit is contained in:
Evan Hahn 2021-04-05 11:03:27 -05:00 committed by Josh Perez
parent 6cfb3c9867
commit a7c78b3b23
5 changed files with 141 additions and 13 deletions

View 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
);