Merge pull request #887 from matrix-org/t3chguy/guests_cant_filter
tell guests they can't use filepanel until they register
This commit is contained in:
commit
c15a67a8d8
1 changed files with 5 additions and 1 deletions
|
@ -90,7 +90,11 @@ var FilePanel = React.createClass({
|
|||
},
|
||||
|
||||
render: function() {
|
||||
if (this.noRoom) {
|
||||
if (MatrixClientPeg.get().isGuest()) {
|
||||
return <div className="mx_FilePanel mx_RoomView_messageListWrapper">
|
||||
<div className="mx_RoomView_empty">You must <a href="#/register">register</a> to use this functionality</div>
|
||||
</div>;
|
||||
} else if (this.noRoom) {
|
||||
return <div className="mx_FilePanel mx_RoomView_messageListWrapper">
|
||||
<div className="mx_RoomView_empty">You must join the room to see its files</div>
|
||||
</div>;
|
||||
|
|
Loading…
Reference in a new issue