diff --git a/src/room/usePTT.ts b/src/room/usePTT.ts index d33a38b5..48c69c4a 100644 --- a/src/room/usePTT.ts +++ b/src/room/usePTT.ts @@ -16,6 +16,9 @@ limitations under the License. import { useCallback, useEffect, useState } from "react"; import { MatrixClient } from "matrix-js-sdk/src/client"; +// XXX: This must come after the other js-sdk import because of +// https://github.com/matrix-org/matrix-js-sdk/issues/2351 +import "matrix-js-sdk/src/@types/global"; import { GroupCall } from "matrix-js-sdk/src/webrtc/groupCall"; import { CallFeed } from "matrix-js-sdk/src/webrtc/callFeed"; diff --git a/tsconfig.json b/tsconfig.json index 0de9b902..a3223582 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "moduleResolution": "node", "noEmit": true, "noImplicitAny": false, - "noUnusedLocals": true, + "noUnusedLocals": false, "jsx": "preserve", "lib": [ "es2020",