Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d4f67d9

Browse files
committed
Use resourceId in plain body
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 62fa60f commit d4f67d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/editor/serialize.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export function textSerialize(model: EditorModel) {
101101
case "at-room-pill":
102102
return text + part.text;
103103
case "room-pill":
104+
// Here we use the resourceId for compatibility with non-rich text clients
105+
// See https://github.com/vector-im/element-web/issues/16660
106+
return text + `${part.resourceId}`;
104107
case "user-pill":
105108
return text + `${part.text}`;
106109
}

0 commit comments

Comments
 (0)