mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #6812 from matrix-org/dbkr/fix_roomlist_prompt
Fix checks to show prompt to start new chats
This commit is contained in:
commit
b09ebca688
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
||||||
const unfilteredHistorical = unfilteredLists[DefaultTagID.Archived] || [];
|
const unfilteredHistorical = unfilteredLists[DefaultTagID.Archived] || [];
|
||||||
const unfilteredFavourite = unfilteredLists[DefaultTagID.Favourite] || [];
|
const unfilteredFavourite = unfilteredLists[DefaultTagID.Favourite] || [];
|
||||||
// show a prompt to join/create rooms if the user is in 0 rooms and no historical
|
// show a prompt to join/create rooms if the user is in 0 rooms and no historical
|
||||||
if (unfilteredRooms.length < 1 && unfilteredHistorical < 1 && unfilteredFavourite < 1) {
|
if (unfilteredRooms.length < 1 && unfilteredHistorical.length < 1 && unfilteredFavourite.length < 1) {
|
||||||
explorePrompt = <div className="mx_RoomList_explorePrompt">
|
explorePrompt = <div className="mx_RoomList_explorePrompt">
|
||||||
<div>{ _t("Use the + to make a new room or explore existing ones below") }</div>
|
<div>{ _t("Use the + to make a new room or explore existing ones below") }</div>
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
|
|
Loading…
Reference in a new issue