Drop (IRC) suffix hacks
This commit is contained in:
parent
5b027c6410
commit
fe788486b7
4 changed files with 4 additions and 7 deletions
|
@ -108,11 +108,11 @@ export default class UserProvider extends AutocompleteProvider {
|
|||
// Don't search if the query is a single "@"
|
||||
if (fullMatch && fullMatch !== '@') {
|
||||
completions = this.matcher.match(fullMatch).map((user) => {
|
||||
const displayName = (user.name || user.userId || '').replace(' (IRC)', ''); // FIXME when groups are done
|
||||
const displayName = (user.name || user.userId || ''); // FIXME when groups are done
|
||||
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.replace(' (IRC)', ''),
|
||||
completion: user.rawDisplayName,
|
||||
suffix: range.start === 0 ? ': ' : ' ',
|
||||
href: makeUserPermalink(user.userId),
|
||||
component: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue