For mentions, always use rawDisplayName and remove (IRC)
This commit is contained in:
parent
102b02054b
commit
610b2a3a42
2 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,7 @@ export default class UserProvider extends AutocompleteProvider {
|
|||
return {
|
||||
// Length of completion should equal length of text in decorator. draft-js
|
||||
// relies on the length of the entity === length of the text in the decoration.
|
||||
completion: user.rawDisplayName,
|
||||
completion: user.rawDisplayName.replace(' (IRC)', ''),
|
||||
suffix: range.start === 0 ? ': ' : ' ',
|
||||
href: 'https://matrix.to/#/' + user.userId,
|
||||
component: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue