Improve story cleanup on expiration/deletion

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2024-07-02 18:32:28 -05:00 committed by GitHub
parent a14c3fe899
commit 930ca847eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 15 deletions

View file

@ -264,13 +264,12 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
async hydrateStoryContext(
inMemoryMessage?: MessageAttributesType,
{
shouldSave,
}: {
options: {
shouldSave?: boolean;
isStoryErased?: boolean;
} = {}
): Promise<void> {
await hydrateStoryContext(this.id, inMemoryMessage, { shouldSave });
await hydrateStoryContext(this.id, inMemoryMessage, options);
}
// Dependencies of prop-generation functions