correctly send pills in messages
This commit is contained in:
parent
d7c2c8ba7b
commit
9c0c806af4
8 changed files with 159 additions and 63 deletions
|
@ -113,6 +113,7 @@ export default class UserProvider extends AutocompleteProvider {
|
|||
// 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.replace(' (IRC)', ''),
|
||||
completionId: user.userId,
|
||||
suffix: range.start === 0 ? ': ' : ' ',
|
||||
href: makeUserPermalink(user.userId),
|
||||
component: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue