Merge pull request #1237 from matrix-org/luke/fix-rte-colon-parity

Implement old composer feature that inserts ': ' or ' '
This commit is contained in:
David Baker 2017-07-20 13:05:40 +01:00 committed by GitHub
commit 199b771051
2 changed files with 9 additions and 2 deletions

View file

@ -55,6 +55,7 @@ export default class UserProvider extends AutocompleteProvider {
const displayName = (user.name || user.userId || '').replace(' (IRC)', ''); // FIXME when groups are done
return {
completion: displayName,
suffix: range.start === 0 ? ': ' : ' ',
entity: {
type: 'LINK',
mutability: 'IMMUTABLE',