autocomplete: add space after completing room name

This commit is contained in:
Aviral Dasgupta 2016-11-30 23:12:03 +05:30
parent f4c0baaa2f
commit edd5903ed7
No known key found for this signature in database
GPG key ID: 5FD1E9F4FFD3DA80

View file

@ -38,7 +38,7 @@ export default class RoomProvider extends AutocompleteProvider {
completions = this.fuse.search(command[0]).map(room => {
let displayAlias = getDisplayAliasForRoom(room.room) || room.roomId;
return {
completion: displayAlias,
completion: displayAlias + ' ',
component: (
<PillCompletion initialComponent={<RoomAvatar width={24} height={24} room={room.room} />} title={room.name} description={displayAlias} />
),