File tree 8 files changed +9
-58
lines changed
8 files changed +9
-58
lines changed Original file line number Diff line number Diff line change 22
22
"@juggle/resize-observer" : " ^3.3.1" ,
23
23
"@livekit/components-core" : " ^0.11.0" ,
24
24
"@livekit/components-react" : " ^2.0.0" ,
25
- "@matrix-org/olm" : " https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.14.tgz" ,
26
25
"@opentelemetry/api" : " ^1.4.0" ,
27
26
"@opentelemetry/context-zone" : " ^1.9.1" ,
28
27
"@opentelemetry/exporter-jaeger" : " ^1.9.1" ,
Original file line number Diff line number Diff line change 59
59
"username" : " Username" ,
60
60
"video" : " Video"
61
61
},
62
+ "crypto_version" : " Crypto version: {{version}}" ,
62
63
"device_id" : " Device ID: {{id}}" ,
63
64
"disconnected_banner" : " Connectivity to the server has been lost." ,
64
65
"full_screen_view_description" : " <0>Submitting debug logs will help us track down the problem.</0>" ,
156
157
"unauthenticated_view_eula_caption" : " By clicking \" Go\" , you agree to our <2>End User Licensing Agreement (EULA)</2>" ,
157
158
"unauthenticated_view_login_button" : " Login to your account" ,
158
159
"unmute_microphone_button_label" : " Unmute microphone" ,
159
- "version" : " Version : {{version}}" ,
160
+ "version" : " {{productName}} version : {{version}}" ,
160
161
"video_tile" : {
161
162
"always_show" : " Always show" ,
162
163
"change_fit_contain" : " Fit to frame" ,
Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ declare global {
23
23
webkitFullscreenElement : HTMLElement | null ;
24
24
}
25
25
26
- interface Window {
27
- // TODO: https://gitlab.matrix.org/matrix-org/olm/-/issues/10
28
- OLM_OPTIONS : Record < string , string > ;
29
- }
30
-
31
26
interface HTMLElement {
32
27
// Safari only supports this prefixed, so tell the type system about it
33
28
webkitRequestFullscreen : ( ) => void ;
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ enum LoadState {
32
32
}
33
33
34
34
class DependencyLoadStates {
35
- // TODO: decide where olm should be initialized (see TODO comment below)
36
- // olm: LoadState = LoadState.None;
37
35
public config : LoadState = LoadState . None ;
38
36
public sentry : LoadState = LoadState . None ;
39
37
public openTelemetry : LoadState = LoadState . None ;
@@ -128,18 +126,6 @@ export class Initializer {
128
126
private loadStates = new DependencyLoadStates ( ) ;
129
127
130
128
private initStep ( resolve : ( value : void | PromiseLike < void > ) => void ) : void {
131
- // TODO: Olm is initialized with the client currently (see `initClient()` and `olm.ts`)
132
- // we need to decide if we want to init it here or keep it in initClient
133
- // if (this.loadStates.olm === LoadState.None) {
134
- // this.loadStates.olm = LoadState.Loading;
135
- // // TODO: https://gitlab.matrix.org/matrix-org/olm/-/issues/10
136
- // window.OLM_OPTIONS = {};
137
- // Olm.init({ locateFile: () => olmWasmPath }).then(() => {
138
- // this.loadStates.olm = LoadState.Loaded;
139
- // this.initStep(resolve);
140
- // });
141
- // }
142
-
143
129
// config
144
130
if ( this . loadStates . config === LoadState . None ) {
145
131
this . loadStates . config = LoadState . Loading ;
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import type { MatrixClient } from "matrix-js-sdk/src/client";
34
34
import type { Room } from "matrix-js-sdk/src/models/room" ;
35
35
import IndexedDBWorker from "./IndexedDBWorker?worker" ;
36
36
import { generateUrlSearchParams , getUrlParams } from "./UrlParams" ;
37
- import { loadOlm } from "./olm" ;
38
37
import { Config } from "./config/Config" ;
39
38
import { E2eeType } from "./e2ee/e2eeType" ;
40
39
import { EncryptionSystem , saveKeyForRoom } from "./e2ee/sharedKeyManagement" ;
@@ -97,8 +96,6 @@ export async function initClient(
97
96
clientOptions : ICreateClientOpts ,
98
97
restore : boolean ,
99
98
) : Promise < MatrixClient > {
100
- await loadOlm ( ) ;
101
-
102
99
let indexedDB : IDBFactory | undefined ;
103
100
try {
104
101
indexedDB = window . indexedDB ;
@@ -198,7 +195,7 @@ export async function initClient(
198
195
await client . store . startup ( ) ;
199
196
}
200
197
201
- await client . initCrypto ( ) ;
198
+ await client . initRustCrypto ( ) ;
202
199
client . setGlobalErrorOnUnknownDevices ( false ) ;
203
200
// Once startClient is called, syncs are run asynchronously.
204
201
// Also, sync completion is communicated only via events.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -241,9 +241,15 @@ export const SettingsModal: FC<Props> = ({
241
241
>
242
242
< p >
243
243
{ t ( "version" , {
244
+ productName : import . meta. env . VITE_PRODUCT_NAME || "Element Call" ,
244
245
version : import . meta. env . VITE_APP_VERSION || "dev" ,
245
246
} ) }
246
247
</ p >
248
+ < p >
249
+ { t ( "crypto_version" , {
250
+ version : client . getCrypto ( ) ?. getVersion ( ) || "unknown" ,
251
+ } ) }
252
+ </ p >
247
253
< p >
248
254
{ t ( "matrix_id" , {
249
255
id : client . getUserId ( ) || "unknown" ,
Original file line number Diff line number Diff line change 1924
1924
resolved "https://registry.yarnpkg.com/@matrix-org/olm/-/olm-3.2.15.tgz#55f3c1b70a21bbee3f9195cecd6846b1083451ec"
1925
1925
integrity sha512-S7lOrndAK9/8qOtaTq/WhttJC/o4GAzdfK0MUPpo8ApzsJEC0QjtwrkC3KBXdFP1cD1MXi/mlKR7aaoVMKgs6Q==
1926
1926
1927
- " @matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.14.tgz " :
1928
- version "3.2.14"
1929
- resolved "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.14.tgz#acd96c00a881d0f462e1f97a56c73742c8dbc984"
1930
-
1931
1927
1932
1928
version "2.1.5"
1933
1929
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
You can’t perform that action at this time.
0 commit comments