1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Merge pull request #2074 from matrix-org/t3chguy/hide_ddg_me_after_space

hide some commands after space as they have special semantics
This commit is contained in:
David Baker
2018-07-19 13:51:05 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -47,6 +47,8 @@ export default class CommandProvider extends AutocompleteProvider {
// The input looks like a command with arguments, perform exact match
const name = command[1].substr(1); // strip leading `/`
if (CommandMap[name]) {
// some commands, namely `me` and `ddg` don't suit having the usage shown whilst typing their arguments
if (!CommandMap[name].hideCompletionAfterSpace) return [];
matches = [CommandMap[name]];
}
} else {