Sync storiesDisabled flag on AccountRecord

This commit is contained in:
Fedor Indutny 2022-10-04 10:53:36 -07:00 committed by GitHub
parent 3e57cb8549
commit 8b705d3b55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 42 additions and 35 deletions

View file

@ -1904,7 +1904,7 @@ export default class MessageReceiver
const attachments: Array<ProcessedAttachment> = [];
if (!window.Events.getHasStoriesEnabled()) {
if (window.Events.getHasStoriesDisabled()) {
log.info('MessageReceiver.handleStoryMessage: dropping', logId);
this.removeFromCache(envelope);
return;
@ -2697,7 +2697,7 @@ export default class MessageReceiver
}
if (sentMessage.storyMessageRecipients && sentMessage.isRecipientUpdate) {
if (!window.Events.getHasStoriesEnabled()) {
if (window.Events.getHasStoriesDisabled()) {
log.info(
'MessageReceiver.handleSyncMessage: dropping story recipients update'
);