Implementing Notifications in Simple Discussion Gem
January 10, 2023 · 158 words · One minute · notifications circuitverse
🎯 GOAL
Adding Notification Events to Simple Discussion
Adding two new notification events:
- Notifying Admins on a new thread post
- Notifications to users that have subscribed to the thread
New Thread notification:
This sends notification to all moderators about a new thread, so that they can respond to the query asap.
For example in the following
- for all admin users, moderators so that they can resolve the query asap.
- eg: ref, both the admin user receive notification when user1posted a new thread.


Forum Comment notification:
- for all the users that have subscribed to the thread.
- eg: Users that have subscribed to a conversation receive notifications below… conversation

Notifications



Redirects
- Comment notification redirects to the comment

- Thread notification redirects to the thread
Future Scope
To add a central notification preference (new_thread_notification )for all users (not just admin users) to receive notification on a new thread… default false …. In customise event notification PR
Code can be found here