discourse/plugins/chat/assets/javascripts/discourse/lib/chat-notification-levels.js
David Battersby 997fbc9757
FEATURE: Add ability to watch chat threads (#28639)
This change introduces a new thread notification level allowing users to get notified when someone replies to the thread.

Users who watch a thread will get a green notification on the chat icon and a user notification (blue). User notifications are consolidated based on thread id to prevent cluttering the original users notification area.

---------

Co-authored-by: Régis Hanol <regis@hanol.fr>
2024-09-02 16:45:55 +04:00

11 lines
255 B
JavaScript

import {
buttonDetails,
NotificationLevels,
} from "discourse/lib/notification-levels";
export const threadNotificationButtonLevels = [
NotificationLevels.WATCHING,
NotificationLevels.TRACKING,
NotificationLevels.REGULAR,
].map(buttonDetails);