From 5bca5a7a8ed0236b225af69cb4c8cc87c215d6e4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 6 Dec 2017 19:02:26 +0000 Subject: [PATCH] More underscore --- src/components/structures/RoomStatusBar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/structures/RoomStatusBar.js b/src/components/structures/RoomStatusBar.js index f9f30e1715..44bfdde834 100644 --- a/src/components/structures/RoomStatusBar.js +++ b/src/components/structures/RoomStatusBar.js @@ -113,7 +113,7 @@ module.exports = React.createClass({ componentWillMount: function() { MatrixClientPeg.get().on("sync", this.onSyncStateChange); MatrixClientPeg.get().on("RoomMember.typing", this.onRoomMemberTyping); - MatrixClientPeg.get().on("Room.localEchoUpdated", this.onRoomLocalEchoUpdated); + MatrixClientPeg.get().on("Room.localEchoUpdated", this._onRoomLocalEchoUpdated); this._checkSize(); }, @@ -128,7 +128,7 @@ module.exports = React.createClass({ if (client) { client.removeListener("sync", this.onSyncStateChange); client.removeListener("RoomMember.typing", this.onRoomMemberTyping); - client.removeListener("Room.localEchoUpdated", this.onRoomLocalEchoUpdated); + client.removeListener("Room.localEchoUpdated", this._onRoomLocalEchoUpdated); } }, @@ -159,7 +159,7 @@ module.exports = React.createClass({ showUnknownDeviceDialogForMessages(MatrixClientPeg.get(), this.props.room); }, - onRoomLocalEchoUpdated: function(event, room, oldEventId, oldStatus) { + _onRoomLocalEchoUpdated: function(event, room, oldEventId, oldStatus) { if (room.roomId !== this.props.room.roomId) return; this.setState({