special case to include kicked rooms as per https://github.com/vector-im/vector-web/issues/308
parent
86807b631d
commit
bfbb7a661e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue