From 8b9b268ec047c418504972a2b6f8517fb4e4950f Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 3 Nov 2015 14:35:55 +0000 Subject: [PATCH] make our state explicit --- src/controllers/organisms/RoomList.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/controllers/organisms/RoomList.js b/src/controllers/organisms/RoomList.js index 964a26481..514ae7747 100644 --- a/src/controllers/organisms/RoomList.js +++ b/src/controllers/organisms/RoomList.js @@ -28,6 +28,14 @@ var CallHandler = require("matrix-react-sdk/lib/CallHandler"); var HIDE_CONFERENCE_CHANS = true; module.exports = { + getInitialState: function() { + return { + activityMap: null, + inviteList: [], + roomList: [], + } + }, + componentWillMount: function() { var cli = MatrixClientPeg.get(); cli.on("Room", this.onRoom);