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:
commit
1f2f8ffa49
2 changed files with 3 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ export function RoomNavItem({
|
|||
navigateRoom(room.roomId);
|
||||
}
|
||||
} else {
|
||||
navigateRoom(room.roomId);
|
||||
navigate(linkPath);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue