You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
Show People/Rooms emptySubListTip even when total rooms !== 0
This commit is contained in:
@@ -510,24 +510,23 @@ module.exports = React.createClass({
|
|||||||
const StartChatButton = sdk.getComponent('elements.StartChatButton');
|
const StartChatButton = sdk.getComponent('elements.StartChatButton');
|
||||||
const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton');
|
const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton');
|
||||||
const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton');
|
const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton');
|
||||||
if (this.state.totalRoomCount === 0) {
|
|
||||||
const TintableSvg = sdk.getComponent('elements.TintableSvg');
|
const TintableSvg = sdk.getComponent('elements.TintableSvg');
|
||||||
switch (section) {
|
switch (section) {
|
||||||
case 'im.vector.fake.direct':
|
case 'im.vector.fake.direct':
|
||||||
return <div className="mx_RoomList_emptySubListTip">
|
return <div className="mx_RoomList_emptySubListTip">
|
||||||
Press
|
Press
|
||||||
<StartChatButton size="16" callout={true}/>
|
<StartChatButton size="16" callout={true}/>
|
||||||
to start a chat with someone
|
to start a chat with someone
|
||||||
</div>;
|
</div>;
|
||||||
case 'im.vector.fake.recent':
|
case 'im.vector.fake.recent':
|
||||||
return <div className="mx_RoomList_emptySubListTip">
|
return <div className="mx_RoomList_emptySubListTip">
|
||||||
You're not in any rooms yet! Press
|
You're not in any rooms yet! Press
|
||||||
<CreateRoomButton size="16" callout={true}/>
|
<CreateRoomButton size="16" callout={true}/>
|
||||||
to make a room or
|
to make a room or
|
||||||
<RoomDirectoryButton size="16" callout={true}/>
|
<RoomDirectoryButton size="16" callout={true}/>
|
||||||
to browse the directory
|
to browse the directory
|
||||||
</div>;
|
</div>;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.state.totalRoomCount === 0) {
|
if (this.state.totalRoomCount === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user