Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to hard delete PD when all recipients have left #178

Merged
merged 3 commits into from
Dec 12, 2022

Conversation

davwheat
Copy link
Member

Changes proposed in this pull request:

  • Add option to auto-delete a PD when all recipients leave

Reviewers should focus on:

Screenshot

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

@davwheat davwheat self-assigned this Nov 28, 2022
)
.catch((err) => {
// some other error... assume not deleted
console.error(err);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the course of action intended for this scenario?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, I decided to assume the least destructive scenario.

In case of something like a network error, don't want the front end to kick the user off of the private discussion page, so I made it a noop.

@davwheat davwheat marked this pull request as ready for review December 5, 2022 09:32
@imorland imorland merged commit a436980 into master Dec 12, 2022
@imorland imorland deleted the dw/delete-on-recipients-left branch December 12, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants