Make rooms the user is banned in be treated as a joined room for position in room list

This is so users can still find the room they've been expelled from, rather than
have it drop to the Historical section.
This commit is contained in:
Kegan Dougal 2015-12-18 15:56:27 +00:00
parent 711fdd25af
commit c3bd81b83a

View file

@ -225,12 +225,12 @@ module.exports = React.createClass({
if (me && me.membership == "invite") {
s.lists["im.vector.fake.invite"].push(room);
}
else if (me && (me.membership === "leave" || me.membership === "ban")) {
else if (me && me.membership === "leave") {
s.lists["im.vector.fake.archived"].push(room);
}
else {
var shouldShowRoom = (
me && (me.membership == "join")
me && (me.membership == "join" || me.membership === "ban")
);
// hiding conf rooms only ever toggles shouldShowRoom to false