mirror of https://github.com/vector-im/riot-web
cleanup
parent
264c8181c2
commit
92237f1045
|
@ -789,8 +789,10 @@ function useRoomPermissions(cli, room, user) {
|
||||||
canEdit: false,
|
canEdit: false,
|
||||||
canInvite: false,
|
canInvite: false,
|
||||||
});
|
});
|
||||||
const updateRoomPermissions = useCallback(async () => {
|
const updateRoomPermissions = useCallback(() => {
|
||||||
if (!room) return;
|
if (!room) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const powerLevelEvent = room.currentState.getStateEvents("m.room.power_levels", "");
|
const powerLevelEvent = room.currentState.getStateEvents("m.room.power_levels", "");
|
||||||
if (!powerLevelEvent) return;
|
if (!powerLevelEvent) return;
|
||||||
|
|
Loading…
Reference in New Issue