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

@ -95,6 +95,7 @@ function selectionEquals(a: Partial<Selection>, b: Selection): boolean {
interface IProps {
model: EditorModel;
room: Room;
threadId: string;
placeholder?: string;
label?: string;
initialCaret?: DocumentOffset;
@ -243,7 +244,11 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
isTyping = false;
}
}
TypingStore.sharedInstance().setSelfTyping(this.props.room.roomId, isTyping);
TypingStore.sharedInstance().setSelfTyping(
this.props.room.roomId,
this.props.threadId,
isTyping,
);
if (this.props.onChange) {
this.props.onChange();