function notifyEveryone
notifyEveryone(
mentionerUserId: string,
messageId: string,
skipUserId?: (userId: string) => boolean
): void

Notifies every user but its author of chat message messageId, which says @everyone. The WebSocket route calls it, after notifyMentions so that a user also named is told by name, when the message is sent flagged mentionsEveryone, or when an edit flags it. Each user is notified once per message, however often it is edited. skipUserId spares the users who have the chat open, as for a mention.

Parameters

mentionerUserId: string
messageId: string
optional
skipUserId: (userId: string) => boolean

Return Type

void

Usage

import { notifyEveryone } from "api/services/notification-service.ts";