Delete a distribution lists members when list is deleted
This commit is contained in:
parent
d7ec2e9d82
commit
473d57fb74
1 changed files with 12 additions and 6 deletions
|
@ -212,12 +212,17 @@ function deleteDistributionList(
|
|||
return;
|
||||
}
|
||||
|
||||
await dataInterface.modifyStoryDistribution({
|
||||
...storyDistribution,
|
||||
deletedAtTimestamp,
|
||||
name: '',
|
||||
storageNeedsSync: true,
|
||||
});
|
||||
await dataInterface.modifyStoryDistributionWithMembers(
|
||||
{
|
||||
...storyDistribution,
|
||||
name: '',
|
||||
storageNeedsSync: true,
|
||||
},
|
||||
{
|
||||
toAdd: [],
|
||||
toRemove: storyDistribution.members,
|
||||
}
|
||||
);
|
||||
|
||||
log.info(
|
||||
'storyDistributionLists.deleteDistributionList: list deleted',
|
||||
|
@ -528,6 +533,7 @@ export function reducer(
|
|||
action.payload.listId,
|
||||
() => ({
|
||||
deletedAtTimestamp: action.payload.deletedAtTimestamp,
|
||||
memberUuids: [],
|
||||
name: '',
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue