From 4fb4c5b74435f83b7e09f4b8185e1f05f0fd483e Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sun, 15 Sep 2019 22:19:07 +0100 Subject: [PATCH 1/2] Only put a room in Historical if === 'leave' not peeked Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/stores/RoomListStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/RoomListStore.js b/src/stores/RoomListStore.js index 6d41532852..f209f6f9ba 100644 --- a/src/stores/RoomListStore.js +++ b/src/stores/RoomListStore.js @@ -327,7 +327,7 @@ class RoomListStore extends Store { } else if (tags.length === 0) { tags.push("im.vector.fake.recent"); } - } else { + } else if (myMembership === 'leave') { tags.push("im.vector.fake.archived"); } From 3fdaeea3a237507cd289e952cd05a4598a0cb3ee Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sun, 15 Sep 2019 22:24:23 +0100 Subject: [PATCH 2/2] allow rooms we were banned from into Historical also Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/stores/RoomListStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/RoomListStore.js b/src/stores/RoomListStore.js index f209f6f9ba..980753551a 100644 --- a/src/stores/RoomListStore.js +++ b/src/stores/RoomListStore.js @@ -327,7 +327,7 @@ class RoomListStore extends Store { } else if (tags.length === 0) { tags.push("im.vector.fake.recent"); } - } else if (myMembership === 'leave') { + } else if (myMembership) { // null-guard as null means it was peeked tags.push("im.vector.fake.archived"); }