Skip to content

Commit

Permalink
Save conversation when toggling story status
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Oct 21, 2022
1 parent 5bb0750 commit b1b211b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ts/models/conversations.ts
Expand Up @@ -5205,8 +5205,13 @@ export class ConversationModel extends window.Backbone
}

toggleHideStories(): void {
this.set({ hideStory: !this.get('hideStory') });
const hideStory = !this.get('hideStory');
log.info(
`toggleHideStories(${this.idForLogging()}): newValue=${hideStory}`
);
this.set({ hideStory });
this.captureChange('hideStory');
window.Signal.Data.updateConversation(this.attributes);
}

setMuteExpiration(
Expand Down

0 comments on commit b1b211b

Please sign in to comment.