forked from github/cinny
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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user