mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Don't send typing notification when restoring composer draft (#7477)
This commit is contained in:
parent
fed53a268b
commit
9fd933a0b6
@ -234,7 +234,8 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
|
||||
});
|
||||
this.historyManager.tryPush(this.props.model, selection, inputType, diff);
|
||||
|
||||
let isTyping = !this.props.model.isEmpty;
|
||||
// inputType is falsy during initial mount, don't consider re-loading the draft as typing
|
||||
let isTyping = !this.props.model.isEmpty && !!inputType;
|
||||
// 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user