From 947f389e516c4b83195d3e6cead9ee447abaec75 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Jul 2015 13:18:03 +0100 Subject: [PATCH] be more consistent with naming --- src/controllers/pages/MatrixChat.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index d14451dc..6f2d4ba3 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -19,14 +19,14 @@ limitations under the License. // should be atomised var Loader = require("react-loader"); -var mxCliPeg = require("../../MatrixClientPeg"); +var MatrixClientPeg = require("../../MatrixClientPeg"); var dis = require("../../dispatcher"); module.exports = { getInitialState: function() { return { - logged_in: !!(mxCliPeg.get() && mxCliPeg.get().credentials), + logged_in: !!(MatrixClientPeg.get() && mxCliPeg.get().credentials), ready: false }; }, @@ -61,8 +61,8 @@ module.exports = { logged_in: false, ready: false }); - mxCliPeg.get().removeAllListeners(); - mxCliPeg.replace(null); + MatrixClientPeg.get().removeAllListeners(); + MatrixClientPeg.replace(null); break; case 'view_room': this.setState({ @@ -73,7 +73,7 @@ module.exports = { case 'view_prev_room': roomIndexDelta = -1; case 'view_next_room': - var allRooms = mxCliPeg.get().getRooms(); + var allRooms = MatrixClientPeg.get().getRooms(); var roomIndex = -1; for (var i = 0; i < allRooms.length; ++i) { if (allRooms[i].roomId == this.state.currentRoom) { @@ -95,7 +95,7 @@ module.exports = { }, startMatrixClient: function() { - var cli = mxCliPeg.get(); + var cli = MatrixClientPeg.get(); var that = this; cli.on('syncComplete', function() { var firstRoom = null;