mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 14:38:21 +00:00
dont assume there are powerlevels set
This commit is contained in:
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user