Matthew Hodgson 2016-03-23 11:41:10 +00:00
parent 422a1f01a4
commit c4eabe2eb4
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ module.exports = React.createClass({
return defaultPerms;
}
var me = room.getMember(MatrixClientPeg.get().credentials.userId);
if (!me) {
return defaultPerms;
}
var them = member;
return {
can: this._calculateCanPermissions(