1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-15 11:01:52 +03:00

Merge branch 'kegan/slash-command-tab-complete' into matthew/roomsettings2

This commit is contained in:
Matthew Hodgson
2016-01-14 16:02:29 +00:00
10 changed files with 310 additions and 172 deletions

View File

@ -96,8 +96,6 @@ module.exports = React.createClass({
// xchat-style tab complete, add a colon if tab
// completing at the start of the text
this.tabComplete = new TabComplete({
startingWordSuffix: ": ",
wordSuffix: " ",
allowLooping: false,
autoEnterTabComplete: true,
onClickCompletes: true,
@ -419,7 +417,7 @@ module.exports = React.createClass({
}
this.tabComplete.setCompletionList(
MemberEntry.fromMemberList(room.getJoinedMembers()).concat(
CommandEntry.fromStrings(SlashCommands.getCommandList())
CommandEntry.fromCommands(SlashCommands.getCommandList())
)
);
},