RootTheBox icon indicating copy to clipboard operation
RootTheBox copied to clipboard

Clear notification function

Open punitdarji opened this issue 5 years ago • 2 comments

Is there any function to clear notification from users login and admin login? Thank you

punitdarji avatar Nov 06 '20 19:11 punitdarji

Not at this time. It wouldn't be difficult to add, but we don't have a separate queue for the admin. The admin just has visibility to all the user notifications. So if the admin were to clear the notifications, then it would delete them for the users as well. Likewise, if a user deleted their notifications, it would delete the notification for the admin. So if we wanted to turn this into a feature, we might want to duplicate notifications (one for the admins and a separate one for the user). Or on the admin page, give notification that it will delete the notifications for all users.

If it's just a periodic thing, you can do it via SQL. DELETE FROM notification or for a specific user's notifications DELETE FROM notification WHERE user_id=?

eljeffeg avatar Nov 07 '20 16:11 eljeffeg

Hi there! On notification page we display all the notifications when user click on clear button on home page notification area. We can set flag 1 to 0 in database. For notification page we can display all the data.

punitdarji avatar Nov 08 '20 08:11 punitdarji