Disable typing notifications for threads (#7180)

This commit is contained in:
Germain 2021-11-23 08:25:58 +00:00 committed by GitHub
parent 87201c8bfb
commit df032b04e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 5 deletions

View file

@ -643,6 +643,9 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
};
render() {
const threadId = this.props.relation?.rel_type === RelationType.Thread
? this.props.relation.event_id
: null;
return (
<div className="mx_SendMessageComposer" onClick={this.focusComposer} onKeyDown={this.onKeyDown}>
<BasicMessageComposer
@ -650,6 +653,7 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
ref={this.editorRef}
model={this.model}
room={this.props.room}
threadId={threadId}
label={this.props.placeholder}
placeholder={this.props.placeholder}
onPaste={this.onPaste}