Improve story cleanup on expiration/deletion
This commit is contained in:
parent
39d15ba620
commit
bde4fa40fe
4 changed files with 16 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue