diff --git a/src/components/structures/RoomStatusBar.js b/src/components/structures/RoomStatusBar.js index b4d70f3397..6502fb7c37 100644 --- a/src/components/structures/RoomStatusBar.js +++ b/src/components/structures/RoomStatusBar.js @@ -62,10 +62,6 @@ module.exports = React.createClass({ // more interesting) hasActiveCall: PropTypes.bool, - // Number of names to display in typing indication. E.g. set to 3, will - // result in "X, Y, Z and 100 others are typing." - whoIsTypingLimit: PropTypes.number, - // true if the room is being peeked at. This affects components that shouldn't // logically be shown when peeking, such as a prompt to invite people to a room. isPeeking: PropTypes.bool, @@ -103,24 +99,16 @@ module.exports = React.createClass({ onVisible: PropTypes.func, }, - getDefaultProps: function() { - return { - whoIsTypingLimit: 3, - }; - }, - getInitialState: function() { return { syncState: MatrixClientPeg.get().getSyncState(), syncStateData: MatrixClientPeg.get().getSyncStateData(), - usersTyping: WhoIsTyping.usersTypingApartFromMe(this.props.room), unsentMessages: getUnsentMessages(this.props.room), }; }, componentWillMount: function() { MatrixClientPeg.get().on("sync", this.onSyncStateChange); - MatrixClientPeg.get().on("RoomMember.typing", this.onRoomMemberTyping); MatrixClientPeg.get().on("Room.localEchoUpdated", this._onRoomLocalEchoUpdated); this._checkSize(); @@ -135,7 +123,6 @@ module.exports = React.createClass({ const client = MatrixClientPeg.get(); if (client) { client.removeListener("sync", this.onSyncStateChange); - client.removeListener("RoomMember.typing", this.onRoomMemberTyping); client.removeListener("Room.localEchoUpdated", this._onRoomLocalEchoUpdated); } }, @@ -150,12 +137,6 @@ module.exports = React.createClass({ }); }, - onRoomMemberTyping: function(ev, member) { - this.setState({ - usersTyping: WhoIsTyping.usersTypingApartFromMeAndIgnored(this.props.room), - }); - }, - _onSendWithoutVerifyingClick: function() { cryptodevices.getUnknownDevicesForRoom(MatrixClientPeg.get(), this.props.room).then((devices) => { cryptodevices.markAllDevicesKnown(MatrixClientPeg.get(), devices); @@ -199,7 +180,6 @@ module.exports = React.createClass({ // indicate other sizes. _getSize: function() { if (this._shouldShowConnectionError() || - (this.state.usersTyping.length > 0) || this.props.numUnreadMessages || !this.props.atEndOfLiveTimeline || this.props.hasActiveCall || @@ -213,10 +193,7 @@ module.exports = React.createClass({ }, // return suitable content for the image on the left of the status bar. - // - // if wantPlaceholder is true, we include a "..." placeholder if - // there is nothing better to put in. - _getIndicator: function(wantPlaceholder) { + _getIndicator: function() { if (this.props.numUnreadMessages) { return (