dont assume there are powerlevels set

This commit is contained in:
Bruno Windels 2019-02-22 11:48:30 +01:00
parent f97ea37717
commit 63504fcc17

View file

@ -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) {