fix: restore rooms and DMs after React Router 7 upgrade
Stop double-encoding Matrix IDs in pathUtils, decode route params on read, fix millify CJS import, and read space children from currentState so channels and joins work again.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useMatch, useParams } from 'react-router-dom';
|
||||
import { getExploreFeaturedPath, getExplorePath } from '../../pages/pathUtils';
|
||||
import { decodeRouteParam, getExploreFeaturedPath, getExplorePath } from '../../pages/pathUtils';
|
||||
|
||||
export const useExploreSelected = (): boolean => {
|
||||
const match = useMatch({
|
||||
@@ -24,5 +24,5 @@ export const useExploreFeaturedSelected = (): boolean => {
|
||||
export const useExploreServer = (): string | undefined => {
|
||||
const { server } = useParams();
|
||||
|
||||
return server;
|
||||
return decodeRouteParam(server);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user