hopefully fix https://github.com/vector-im/vector-web/issues/1242
This commit is contained in:
parent
422a1f01a4
commit
c4eabe2eb4
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue