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
Don't show "Drop to ..." if total rooms = 0
This commit is contained in:
@@ -540,6 +540,10 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.totalRoomCount === 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section);
|
const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section);
|
||||||
|
|
||||||
return <RoomDropTarget label={labelText} />;
|
return <RoomDropTarget label={labelText} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user