Skip to content

Commit fad49f0

Browse files
authored
Merge branch 'cinnyapp:dev' into master
2 parents 0e7e46a + 073a9f5 commit fad49f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/components/editor/output.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ export const getMentions = (mx: MatrixClient, roomId: string, editor: Editor): M
212212
if (node.type === BlockType.CodeBlock) return;
213213

214214
if (node.type === BlockType.Mention) {
215-
if (node.id === getCanonicalAliasOrRoomId(mx, roomId)) {
215+
if (node.name === '@room') {
216216
mentionData.room = true;
217217
}
218+
218219
if (isUserId(node.id) && node.id !== mx.getUserId()) {
219220
mentionData.users.add(node.id);
220221
}

0 commit comments

Comments
 (0)