Files
cinny/src/app/plugins/millify.ts
Max Litruv Boonzaayer b4258278d8 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.
2026-07-09 02:35:04 +10:00

10 lines
272 B
TypeScript

import { millify as millifyFn } from 'millify';
import type { MillifyOptions } from 'millify/dist/options';
export const millify = (count: number, options?: Partial<MillifyOptions>): string =>
millifyFn(count, {
precision: 1,
locales: [],
...options,
});