From 219f4fae3d97592249ecde2a63cbd9373b83e77b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 2 Sep 2022 14:04:16 +0100 Subject: [PATCH] Fix suggested rooms going missing (#9236) --- src/components/views/rooms/RoomList.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index b2493db25c..1353f8f5c8 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -592,12 +592,8 @@ export default class RoomList extends React.PureComponent { let extraTiles = null; if (orderedTagId === DefaultTagID.Suggested) { extraTiles = this.renderSuggestedRooms(); - } - - if (this.state.feature_favourite_messages && orderedTagId === DefaultTagID.SavedItems) { + } else if (this.state.feature_favourite_messages && orderedTagId === DefaultTagID.SavedItems) { extraTiles = this.renderFavoriteMessagesList(); - } else { - extraTiles = null; } const aesthetics = TAG_AESTHETICS[orderedTagId];