Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #887 from matrix-org/t3chguy/guests_cant_filter
Browse files Browse the repository at this point in the history
tell guests they can't use filepanel until they register
  • Loading branch information
ara4n authored May 15, 2017
2 parents 824da83 + 8715b52 commit c15a67a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/structures/FilePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down

0 comments on commit c15a67a

Please sign in to comment.