mirror of https://github.com/vector-im/riot-web
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
parent
711fdd25af
commit
c3bd81b83a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue