You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 totrue
) or adismissMessages
function that takes an array of ids and then marks all the sent ones as dismissed.Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: