special case to include kicked rooms as per https://github.com/vector-im/vector-web/issues/308
This commit is contained in:
parent
86807b631d
commit
bfbb7a661e
2 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,7 @@ var ReactDOM = require("react-dom");
|
||||||
var GeminiScrollbar = require('react-gemini-scrollbar');
|
var GeminiScrollbar = require('react-gemini-scrollbar');
|
||||||
var q = require("q");
|
var q = require("q");
|
||||||
|
|
||||||
var DEBUG_SCROLL = true;
|
var DEBUG_SCROLL = false;
|
||||||
|
|
||||||
if (DEBUG_SCROLL) {
|
if (DEBUG_SCROLL) {
|
||||||
// using bind means that we get to keep useful line numbers in the console
|
// 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") {
|
if (me && me.membership == "invite") {
|
||||||
s.lists["im.vector.fake.invite"].push(room);
|
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") {
|
else if (me && me.membership === "leave") {
|
||||||
s.lists["im.vector.fake.archived"].push(room);
|
s.lists["im.vector.fake.archived"].push(room);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue