diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index 129cbd4581..9b85854016 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -19,7 +19,7 @@ var ReactDOM = require("react-dom"); var GeminiScrollbar = require('react-gemini-scrollbar'); var q = require("q"); -var DEBUG_SCROLL = true; +var DEBUG_SCROLL = false; if (DEBUG_SCROLL) { // using bind means that we get to keep useful line numbers in the console diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 9a7396097f..ee74f30673 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -194,6 +194,10 @@ module.exports = React.createClass({ if (me && me.membership == "invite") { s.lists["im.vector.fake.invite"].push(room); } + // XXX: somewhat hacky gut-wrenching to special-case kicks + else if (me && me.membership === "leave" && me.events.member.getPrevContent().membership === "join") { + s.lists["im.vector.fake.recent"].push(room); + } else if (me && me.membership === "leave") { s.lists["im.vector.fake.archived"].push(room); }