From 0c2bd10594e3743ff1272caf1d82679008e995f4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 2 Aug 2016 19:05:05 +0100 Subject: [PATCH] Comment functions --- src/components/structures/MatrixChat.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 1861366a96..ca7437754b 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -577,6 +577,9 @@ module.exports = React.createClass({ this.scrollStateMap[roomId] = state; }, + /** + * Called when a new logged in session has started + */ _onLoggedIn: function(credentials) { this.guestCreds = null; this.setState({ @@ -585,6 +588,9 @@ module.exports = React.createClass({ }); }, + /** + * Called when the session is logged out + */ _onLoggedOut: function() { this.notifyNewScreen('login'); this.replaceState({ @@ -593,6 +599,10 @@ module.exports = React.createClass({ }); }, + /** + * Called just before the matrix client is started + * (useful for setting options and listeners) + */ _onWillStartClient() { var cli = MatrixClientPeg.get();