mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 10:40:28 +03:00
Fix room mention (#1459)
* create room mention with alias if possible * display room mention text as they were sent
This commit is contained in:
parent
ed3d14b131
commit
a2692e1469
3 changed files with 10 additions and 11 deletions
|
|
@ -74,7 +74,7 @@ const elementToInlineNode = (node: Element): MentionElement | EmoticonElement |
|
|||
if (typeof href !== 'string') return undefined;
|
||||
const [mxId] = parseMatrixToUrl(href);
|
||||
if (mxId) {
|
||||
return createMentionElement(mxId, mxId, false);
|
||||
return createMentionElement(mxId, parseNodeText(node) || mxId, false);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue