Use resourceId in plain body

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-03-11 18:50:35 +01:00
parent 62fa60f109
commit d4f67d94a4
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ export function textSerialize(model: EditorModel) {
case "at-room-pill":
return text + part.text;
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":
return text + `${part.text}`;
}