mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Use resourceId in plain body
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
37b6162c25
commit
5b65f367d3
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ export function textSerialize(model: EditorModel) {
|
||||||
case "at-room-pill":
|
case "at-room-pill":
|
||||||
return text + part.text;
|
return text + part.text;
|
||||||
case "room-pill":
|
case "room-pill":
|
||||||
|
// Here we use the resourceId for compatibility with non-rich text clients
|
||||||
|
// See https://github.com/vector-im/element-web/issues/16660
|
||||||
|
return text + `${part.resourceId}`;
|
||||||
case "user-pill":
|
case "user-pill":
|
||||||
return text + `${part.text}`;
|
return text + `${part.text}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue