Skip to content

Commit

Permalink
Fix rust-sdk issues by using a custom build
Browse files Browse the repository at this point in the history
  • Loading branch information
MTRNord committed May 7, 2023
1 parent 6ce9b4d commit bb599de
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
export NODE_OPTIONS="--max_old_space_size=4096"
npm install
npx browserslist@latest --update-db
patch node_modules/@matrix-org/matrix-sdk-crypto-js/pkg/matrix_sdk_crypto_js.js < .github/crypto-dep.patch
npm run build -- --base /cetirizine/
npm run build-storybook -- --disable-telemetry -o dist/storybook
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/percy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
export NODE_OPTIONS="--max_old_space_size=4096"
npm install
npx browserslist@latest --update-db
patch node_modules/@matrix-org/matrix-sdk-crypto-js/pkg/matrix_sdk_crypto_js.js < .github/crypto-dep.patch
- run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm run storybook -- --no-open &
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@mtrnord:registry=https://npm.pkg.github.com
16 changes: 7 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"dependencies": {
"@lexical/react": "^0.10.0",
"@matrix-org/matrix-sdk-crypto-js": "^0.1.0-alpha.8",
"@mtrnord/matrix-sdk-crypto-js": "0.1.0-alpha.2",
"dompurify": "^3.0.3",
"events": "^3.3.0",
"highlight.js": "^11.8.0",
Expand Down
8 changes: 4 additions & 4 deletions src/app/sdk/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import {
deleteDB,
openDB
} from "idb";
import { DeviceId, DeviceLists, KeysBackupRequest, KeysUploadRequest, OlmMachine, RequestType, RoomId, RoomMessageRequest, SignatureUploadRequest, UserId } from "@matrix-org/matrix-sdk-crypto-js";
import { KeysQueryRequest } from "@matrix-org/matrix-sdk-crypto-js";
import { KeysClaimRequest } from "@matrix-org/matrix-sdk-crypto-js";
import { ToDeviceRequest } from "@matrix-org/matrix-sdk-crypto-js";
import { DeviceId, DeviceLists, KeysBackupRequest, KeysUploadRequest, OlmMachine, RequestType, RoomId, RoomMessageRequest, SignatureUploadRequest, UserId } from "@mtrnord/matrix-sdk-crypto-js";
import { KeysQueryRequest } from "@mtrnord/matrix-sdk-crypto-js";
import { KeysClaimRequest } from "@mtrnord/matrix-sdk-crypto-js";
import { ToDeviceRequest } from "@mtrnord/matrix-sdk-crypto-js";

export interface MatrixClientEvents {
// Used to notify about changes to the room list
Expand Down
2 changes: 1 addition & 1 deletion src/app/sdk/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import EventEmitter from "events";
import { IRoomEvent, IRoomStateEvent, isRoomAvatarEvent, isRoomCreateEvent, isRoomTopicEvent, isSpaceChildEvent, isSpaceParentEvent } from "./api/apiTypes";
import { MatrixClient } from "./client";
import { useEffect, useState } from "react";
import { EncryptionAlgorithm, EncryptionSettings, RoomId } from "@matrix-org/matrix-sdk-crypto-js";
import { EncryptionAlgorithm, EncryptionSettings, RoomId } from "@mtrnord/matrix-sdk-crypto-js";

export interface RoomEvents {
// Used to notify about changes to the event list
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LoggerLevel, Tracing, initAsync, start } from "@matrix-org/matrix-sdk-crypto-js";
import { LoggerLevel, Tracing, initAsync, start } from "@mtrnord/matrix-sdk-crypto-js";
import React from 'react'
import { createRoot } from 'react-dom/client';
import './index.scss';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import UnknownEvent, { RedactedEvent, UndecryptableEvent } from '../components/e
import MemberEvent from '../components/events/memberEvent';
import { IRoomEvent, IRoomMemberEvent } from '../app/sdk/api/apiTypes';
import Linkify from 'linkify-react';
import { RoomId } from '@matrix-org/matrix-sdk-crypto-js';
import { RoomId } from '@mtrnord/matrix-sdk-crypto-js';

type ChatViewProps = {
/**
Expand Down

0 comments on commit bb599de

Please sign in to comment.