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.
pull/21833/head
Kegan Dougal 2015-12-18 15:56:27 +00:00
parent 711fdd25af
commit c3bd81b83a
1 changed files with 2 additions and 2 deletions

View File

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