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

Dismiss Multiple/All messages of one user in one function #171

Open
1 task done
pauljohanneskraft opened this issue Oct 30, 2024 · 0 comments
Open
1 task done

Dismiss Multiple/All messages of one user in one function #171

pauljohanneskraft opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pauljohanneskraft
Copy link
Collaborator

Problem

At the moment, we only allow dismissing a single message in a Firebase function. The web dashboard currently already provides a "Mark all as read" button, but it loops through all the messages manually and calls the same function multiple times.

Solution

To reduce the amount of function calls and probably also generally speed up the process of marking all messages as read, we may want to simply build a separate function that either marks all messages as read (or actually: mark all the ones that are dismissible, i.e. have isDismissible set to true) or a dismissMessages function that takes an array of ids and then marks all the sent ones as dismissed.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant