mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
cleanup
This commit is contained in:
parent
264c8181c2
commit
92237f1045
1 changed files with 4 additions and 2 deletions
|
@ -789,8 +789,10 @@ function useRoomPermissions(cli, room, user) {
|
|||
canEdit: false,
|
||||
canInvite: false,
|
||||
});
|
||||
const updateRoomPermissions = useCallback(async () => {
|
||||
if (!room) return;
|
||||
const updateRoomPermissions = useCallback(() => {
|
||||
if (!room) {
|
||||
return;
|
||||
}
|
||||
|
||||
const powerLevelEvent = room.currentState.getStateEvents("m.room.power_levels", "");
|
||||
if (!powerLevelEvent) return;
|
||||
|
|
Loading…
Reference in a new issue