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

10
ts/textsecure.d.ts vendored
View file

@ -1107,8 +1107,16 @@ export declare class PinnedConversationClass {
groupMasterKey?: ProtoBinaryType;
}
declare enum AccountRecordPhoneNumberSharingMode {
EVERYBODY = 0,
CONTACTS_ONLY = 1,
NOBODY = 2,
}
export declare class AccountRecordClass {
static PhoneNumberSharingMode: typeof AccountRecordPhoneNumberSharingMode;
static PinnedConversation: typeof PinnedConversationClass;
static decode: (
data: ArrayBuffer | ByteBufferClass,
encoding?: string
@ -1124,6 +1132,8 @@ export declare class AccountRecordClass {
sealedSenderIndicators?: boolean | null;
typingIndicators?: boolean | null;
linkPreviews?: boolean | null;
phoneNumberSharingMode?: AccountRecordPhoneNumberSharingMode;
notDiscoverableByPhoneNumber?: boolean;
pinnedConversations?: PinnedConversationClass[];
noteToSelfMarkedUnread?: boolean;