mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +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() {
|
_updateHighestPlUser() {
|
||||||
const plEvent = this._room.currentState.getStateEvents("m.room.power_levels", "");
|
const plEvent = this._room.currentState.getStateEvents("m.room.power_levels", "");
|
||||||
const content = plEvent.getContent();
|
const content = plEvent && plEvent.getContent();
|
||||||
if (content) {
|
if (content) {
|
||||||
const users = content.users;
|
const users = content.users;
|
||||||
if (users) {
|
if (users) {
|
||||||
|
|
Loading…
Reference in a new issue