diff --git a/src/components/views/right_panel/UserInfo.tsx b/src/components/views/right_panel/UserInfo.tsx index 7b16fe3878..2a355964ff 100644 --- a/src/components/views/right_panel/UserInfo.tsx +++ b/src/components/views/right_panel/UserInfo.tsx @@ -1122,6 +1122,10 @@ const PowerLevelEditor: React.FC<{ const cli = useContext(MatrixClientContext); const [selectedPowerLevel, setSelectedPowerLevel] = useState(user.powerLevel); + useEffect(() => { + setSelectedPowerLevel(user.powerLevel); + }, [user]); + const onPowerChange = useCallback(async (powerLevel: number) => { setSelectedPowerLevel(powerLevel);