Skip to content

Commit d82ba69

Browse files
committed
Deprecate legacy functions in MatrixClient
1 parent 8fc77c5 commit d82ba69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ export type Store = IStore;
252252
export type ResetTimelineCallback = (roomId: string) => boolean;
253253

254254
const SCROLLBACK_DELAY_MS = 3000;
255+
/**
256+
* @deprecated Not supported for Rust Cryptography.
257+
*/
255258
export const CRYPTO_ENABLED: boolean = isCryptoAvailable();
256259
const TURN_CHECK_INTERVAL = 10 * 60 * 1000; // poll for turn credentials every 10 minutes
257260

@@ -2430,6 +2433,8 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
24302433
*
24312434
* @remarks
24322435
* Fires {@link CryptoEvent#DeviceVerificationChanged}
2436+
*
2437+
* @deprecated Not supported for Rust Cryptography.
24332438
*/
24342439
public setDeviceVerified(userId: string, deviceId: string, verified = true): Promise<void> {
24352440
const prom = this.setDeviceVerification(userId, deviceId, verified, null, null);

0 commit comments

Comments
 (0)