diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index cd1ad09ab4..62fd70e1ec 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -368,13 +368,28 @@ export default class RoomList extends React.PureComponent { public render() { let explorePrompt: JSX.Element; - if (!this.props.isMinimized && RoomListStore.instance.getFirstNameFilterCondition()) { - explorePrompt =
-
{_t("Can't see what you’re looking for?")}
- - {_t("Explore all public rooms")} - -
; + if (!this.props.isMinimized) { + if (RoomListStore.instance.getFirstNameFilterCondition()) { + explorePrompt =
+
{_t("Can't see what you’re looking for?")}
+ + {_t("Explore all public rooms")} + +
; + } else if (Object.values(this.state.sublists).some(list => list.length > 0)) { + const unfilteredLists = RoomListStore.instance.unfilteredLists + const unfilteredRooms = unfilteredLists[DefaultTagID.Untagged] || []; + const unfilteredHistorical = unfilteredLists[DefaultTagID.Archived] || []; + // show a prompt to join/create rooms if the user is in 0 rooms and no historical + if (unfilteredRooms.length < 1 && unfilteredHistorical < 1) { + explorePrompt =
+
{_t("Use the + to make a new room or explore existing ones below")}
+ + {_t("Explore all public rooms")} + +
; + } + } } const sublists = this.renderSublists();