Save conversation when toggling story status

This commit is contained in:
Fedor Indutny 2022-10-21 09:57:07 -07:00 committed by GitHub
parent 203cc995a3
commit a38b265e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5209,8 +5209,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(