From 6df46cc319b5b95cc32437920328d6c048d4b339 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 21 Aug 2019 16:40:16 +0200 Subject: [PATCH] send typing notifs in new composer (both send and edit) --- src/components/views/rooms/BasicMessageComposer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index d4b9cd87c9..19111f1f45 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -16,7 +16,6 @@ limitations under the License. */ import React from 'react'; import PropTypes from 'prop-types'; -import dis from '../../../dispatcher'; import EditorModel from '../../../editor/model'; import HistoryManager from '../../../editor/history'; import {setCaretPosition} from '../../../editor/caret'; @@ -25,6 +24,7 @@ import Autocomplete from '../rooms/Autocomplete'; import {autoCompleteCreator} from '../../../editor/parts'; import {renderModel} from '../../../editor/render'; import {Room} from 'matrix-js-sdk'; +import TypingStore from "../../../stores/TypingStore"; const IS_MAC = navigator.platform.indexOf("Mac") !== -1; @@ -90,6 +90,7 @@ export default class BasicMessageEditor extends React.Component { } this.setState({autoComplete: this.props.model.autoComplete}); this.historyManager.tryPush(this.props.model, caret, inputType, diff); + TypingStore.sharedInstance().setSelfTyping(this.props.room.roomId, !this.props.model.isEmpty); } _onInput = (event) => {