Merge pull request #887 from matrix-org/t3chguy/guests_cant_filter
tell guests they can't use filepanel until they registerpull/21833/head
commit
c15a67a8d8
|
@ -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 New Issue