Update storage service enum names

This commit is contained in:
Fedor Indutny 2024-02-22 09:29:58 -08:00 committed by GitHub
parent 9d1be9228a
commit 252cb2bd2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -130,8 +130,8 @@ message GroupV2Record {
message AccountRecord { message AccountRecord {
enum PhoneNumberSharingMode { enum PhoneNumberSharingMode {
EVERYBODY = 0; UNKNOWN = 0;
CONTACTS_ONLY = 1; EVERYBODY = 1;
NOBODY = 2; NOBODY = 2;
} }

View file

@ -1257,7 +1257,7 @@ export async function mergeAccountRecord(
case PHONE_NUMBER_SHARING_MODE_ENUM.EVERYBODY: case PHONE_NUMBER_SHARING_MODE_ENUM.EVERYBODY:
phoneNumberSharingModeToStore = PhoneNumberSharingMode.Everybody; phoneNumberSharingModeToStore = PhoneNumberSharingMode.Everybody;
break; break;
case PHONE_NUMBER_SHARING_MODE_ENUM.CONTACTS_ONLY: case PHONE_NUMBER_SHARING_MODE_ENUM.UNKNOWN:
case PHONE_NUMBER_SHARING_MODE_ENUM.NOBODY: case PHONE_NUMBER_SHARING_MODE_ENUM.NOBODY:
phoneNumberSharingModeToStore = PhoneNumberSharingMode.Nobody; phoneNumberSharingModeToStore = PhoneNumberSharingMode.Nobody;
break; break;