From 073a9f5786d676b9e98b98bd3f03e49d0324bb3b Mon Sep 17 00:00:00 2001 From: Santhoshkumar044 Date: Mon, 12 Jan 2026 17:51:00 +0530 Subject: [PATCH] Fix room alias mention triggering room-wide notifications (#2562) * fix: prevent room alias mentions from triggering @room notifications * fix: Simplify room mention to exact match on @room --- src/app/components/editor/output.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/editor/output.ts b/src/app/components/editor/output.ts index dbdd51f3..5310012b 100644 --- a/src/app/components/editor/output.ts +++ b/src/app/components/editor/output.ts @@ -212,9 +212,10 @@ export const getMentions = (mx: MatrixClient, roomId: string, editor: Editor): M if (node.type === BlockType.CodeBlock) return; if (node.type === BlockType.Mention) { - if (node.id === getCanonicalAliasOrRoomId(mx, roomId)) { + if (node.name === '@room') { mentionData.room = true; } + if (isUserId(node.id) && node.id !== mx.getUserId()) { mentionData.users.add(node.id); }