mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-15 17:31:23 +02:00
RoomState.events fired on RoomState object, not room
This commit is contained in:
parent
6afeeddb36
commit
04731d0ae3
@ -346,7 +346,7 @@ const useRoomPowerLevels = (room) => {
|
|||||||
};
|
};
|
||||||
}, [room]);
|
}, [room]);
|
||||||
|
|
||||||
useEventEmitter(room, "RoomState.events", update);
|
useEventEmitter(room.currentState, "RoomState.events", update);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
update();
|
update();
|
||||||
return () => {
|
return () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user