Sync storiesDisabled
flag on AccountRecord
This commit is contained in:
parent
3e57cb8549
commit
8b705d3b55
11 changed files with 42 additions and 35 deletions
|
@ -359,6 +359,9 @@ export function toAccountRecord(
|
|||
accountRecord.hasSetMyStoriesPrivacy = hasSetMyStoriesPrivacy;
|
||||
}
|
||||
|
||||
const hasStoriesDisabled = window.storage.get('hasStoriesDisabled');
|
||||
accountRecord.storiesDisabled = hasStoriesDisabled === true;
|
||||
|
||||
applyUnknownFields(accountRecord, conversation);
|
||||
|
||||
return accountRecord;
|
||||
|
@ -1059,6 +1062,7 @@ export async function mergeAccountRecord(
|
|||
displayBadgesOnProfile,
|
||||
keepMutedChatsArchived,
|
||||
hasSetMyStoriesPrivacy,
|
||||
storiesDisabled,
|
||||
} = accountRecord;
|
||||
|
||||
const updatedConversations = new Array<ConversationModel>();
|
||||
|
@ -1252,6 +1256,7 @@ export async function mergeAccountRecord(
|
|||
window.storage.put('displayBadgesOnProfile', Boolean(displayBadgesOnProfile));
|
||||
window.storage.put('keepMutedChatsArchived', Boolean(keepMutedChatsArchived));
|
||||
window.storage.put('hasSetMyStoriesPrivacy', Boolean(hasSetMyStoriesPrivacy));
|
||||
window.storage.put('hasStoriesDisabled', Boolean(storiesDisabled));
|
||||
|
||||
const ourID = window.ConversationController.getOurConversationId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue