diff --git a/src/components/structures/RoomStatusBar.js b/src/components/structures/RoomStatusBar.js index 892a7e7002..2a81605a78 100644 --- a/src/components/structures/RoomStatusBar.js +++ b/src/components/structures/RoomStatusBar.js @@ -33,9 +33,6 @@ module.exports = React.createClass({ // the room this statusbar is representing. room: React.PropTypes.object.isRequired, - // a TabComplete object - tabComplete: React.PropTypes.object.isRequired, - // the number of messages which have arrived since we've been scrolled up numUnreadMessages: React.PropTypes.number, @@ -143,12 +140,9 @@ module.exports = React.createClass({ (this.state.usersTyping.length > 0) || this.props.numUnreadMessages || !this.props.atEndOfLiveTimeline || - this.props.hasActiveCall || - this.props.tabComplete.isTabCompleting() + this.props.hasActiveCall ) { return STATUS_BAR_EXPANDED; - } else if (this.props.tabCompleteEntries) { - return STATUS_BAR_HIDDEN; } else if (this.props.unsentMessageError) { return STATUS_BAR_EXPANDED_LARGE; } @@ -237,8 +231,6 @@ module.exports = React.createClass({ // return suitable content for the main (text) part of the status bar. _getContent: function() { - var TabCompleteBar = sdk.getComponent('rooms.TabCompleteBar'); - var TintableSvg = sdk.getComponent("elements.TintableSvg"); const EmojiText = sdk.getComponent('elements.EmojiText'); // no conn bar trumps unread count since you can't get unread messages @@ -259,20 +251,6 @@ module.exports = React.createClass({ ); } - if (this.props.tabComplete.isTabCompleting()) { - return ( -
-
- -
- - {_t('Auto-complete')} -
-
-
- ); - } - if (this.props.unsentMessageError) { return (
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 75ab4a0db2..f12e80b944 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -33,7 +33,6 @@ var ContentMessages = require("../../ContentMessages"); var Modal = require("../../Modal"); var sdk = require('../../index'); var CallHandler = require('../../CallHandler'); -var TabComplete = require("../../TabComplete"); var Resend = require("../../Resend"); var dis = require("../../dispatcher"); var Tinter = require("../../Tinter"); @@ -144,15 +143,6 @@ module.exports = React.createClass({ MatrixClientPeg.get().on("RoomMember.membership", this.onRoomMemberMembership); MatrixClientPeg.get().on("accountData", this.onAccountData); - this.tabComplete = new TabComplete({ - allowLooping: false, - autoEnterTabComplete: true, - onClickCompletes: true, - onStateChange: (isCompleting) => { - this.forceUpdate(); - }, - }); - // Start listening for RoomViewStore updates this._roomStoreToken = RoomViewStore.addListener(this._onRoomViewStoreUpdate); this._onRoomViewStoreUpdate(true); @@ -518,7 +508,6 @@ module.exports = React.createClass({ // update the tab complete list as it depends on who most recently spoke, // and that has probably just changed if (ev.sender) { - this.tabComplete.onMemberSpoke(ev.sender); UserProvider.getInstance().onUserSpoke(ev.sender); } }, @@ -542,7 +531,6 @@ module.exports = React.createClass({ this._warnAboutEncryption(room); this._calculatePeekRules(room); this._updatePreviewUrlVisibility(room); - this.tabComplete.loadEntries(room); UserProvider.getInstance().setUserListFromRoom(room); }, @@ -719,7 +707,6 @@ module.exports = React.createClass({ this._updateConfCallNotification(); // refresh the tab complete list - this.tabComplete.loadEntries(this.state.room); UserProvider.getInstance().setUserListFromRoom(this.state.room); // if we are now a member of the room, where we were not before, that @@ -1572,7 +1559,6 @@ module.exports = React.createClass({ isStatusAreaExpanded = this.state.statusBarVisible; statusBar = ; diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 6993fd8f7d..e4ba6bbe81 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -408,8 +408,6 @@ export default class MessageComposer extends React.Component { } MessageComposer.propTypes = { - tabComplete: React.PropTypes.any, - // a callback which is called when the height of the composer is // changed due to a change in content. onResize: React.PropTypes.func, diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index b5c4f31f95..e9dc216fa7 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -75,8 +75,6 @@ function onSendMessageFailed(err, room) { */ export default class MessageComposerInput extends React.Component { static propTypes = { - tabComplete: React.PropTypes.any, - // a callback which is called when the height of the composer is // changed due to a change in content. onResize: React.PropTypes.func, @@ -903,8 +901,6 @@ export default class MessageComposerInput extends React.Component { } MessageComposerInput.propTypes = { - tabComplete: React.PropTypes.any, - // a callback which is called when the height of the composer is // changed due to a change in content. onResize: React.PropTypes.func,