mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-12 02:00:28 +03:00
Prevent crash when opening room permission on conduit homeserver (#312)
* Prevent crash when opening room permission on conduit homeserver * Make fix easier
This commit is contained in:
parent
278fd5bd59
commit
ff9d509137
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ function RoomPermissions({ roomId }) {
|
|||
|
||||
let powerLevel = 0;
|
||||
let permValue = permInfo.parent
|
||||
? permissions[permInfo.parent][permKey]
|
||||
? permissions[permInfo.parent]?.[permKey]
|
||||
: permissions[permKey];
|
||||
|
||||
if (!permValue) permValue = permInfo.default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue