mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
dont assume there are powerlevels set
This commit is contained in:
parent
f97ea37717
commit
63504fcc17
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ export class RoomPermalinkCreator {
|
|||
|
||||
_updateHighestPlUser() {
|
||||
const plEvent = this._room.currentState.getStateEvents("m.room.power_levels", "");
|
||||
const content = plEvent.getContent();
|
||||
const content = plEvent && plEvent.getContent();
|
||||
if (content) {
|
||||
const users = content.users;
|
||||
if (users) {
|
||||
|
|
Loading…
Reference in a new issue