You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
use nesting instead of short-circuited && operator
This commit is contained in:
@@ -146,7 +146,8 @@ 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 && plEvent.getContent();
|
if (plEvent) {
|
||||||
|
const content = plEvent.getContent();
|
||||||
if (content) {
|
if (content) {
|
||||||
const users = content.users;
|
const users = content.users;
|
||||||
if (users) {
|
if (users) {
|
||||||
@@ -172,6 +173,7 @@ export class RoomPermalinkCreator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this._highestPlUserId = null;
|
this._highestPlUserId = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user