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); }