Merge pull request #3 from hazre/fix/element-call-bug-1

Fix room navigation context and stale room names in sidebar
This commit is contained in:
haz 2026-02-13 10:27:51 +01:00 committed by GitHub
commit 1f2f8ffa49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -302,7 +302,7 @@ export function RoomNavItem({
navigateRoom(room.roomId);
}
} else {
navigateRoom(room.roomId);
navigate(linkPath);
}
};

View file

@ -20,6 +20,8 @@ export const useRoomName = (room: Room): string => {
const [name, setName] = useState(room.name);
useEffect(() => {
setName(room.name);
const handleRoomNameChange: RoomEventHandlerMap[RoomEvent.Name] = () => {
setName(room.name);
};