mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Merge pull request #4390 from matrix-org/t3chguy/fix_cmd_no_typing
Fix invalid commands when figuring out whether to set isTyping
This commit is contained in:
commit
17a893adc5
@ -170,7 +170,7 @@ export default class BasicMessageEditor extends React.Component {
|
||||
// If the user is entering a command, only consider them typing if it is one which sends a message into the room
|
||||
if (isTyping && this.props.model.parts[0].type === "command") {
|
||||
const {cmd} = parseCommandString(this.props.model.parts[0].text);
|
||||
if (CommandMap.get(cmd).category !== CommandCategories.messages) {
|
||||
if (!CommandMap.has(cmd) || CommandMap.get(cmd).category !== CommandCategories.messages) {
|
||||
isTyping = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user