Implement @everyone/@here (#8890)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2025-05-12 14:42:58 +07:00
committed by GitHub
parent 137260fe5b
commit 3295adee57
47 changed files with 675 additions and 351 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ import core, {
import notification, {
notificationId,
type ActivityInboxNotification,
type BaseNotificationType,
type NotificationType,
type Collaborators,
type DisplayInboxNotification,
type DocNotifyContext,
@@ -821,7 +821,7 @@ export function notificationsComparator (notifications1: InboxNotification, noti
return 0
}
export function isNotificationAllowed (type: BaseNotificationType, providerId: Ref<NotificationProvider>): boolean {
export function isNotificationAllowed (type: NotificationType, providerId: Ref<NotificationProvider>): boolean {
const client = getClient()
const provider = client.getModel().findAllSync(notification.class.NotificationProvider, { _id: providerId })[0]
if (provider === undefined) return false