File tree 1 file changed +0
-35
lines changed
1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -1970,41 +1970,6 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
1970
1970
return this . cryptoBackend ;
1971
1971
}
1972
1972
1973
- /**
1974
- * Set whether sendMessage in a room with unknown and unverified devices
1975
- * should throw an error and not send them message. This has 'Global' for
1976
- * symmetry with setGlobalBlacklistUnverifiedDevices but there is currently
1977
- * no room-level equivalent for this setting.
1978
- *
1979
- * This API is currently UNSTABLE and may change or be removed without notice.
1980
- *
1981
- * It has no effect with the Rust crypto implementation.
1982
- *
1983
- * @param value - whether error on unknown devices
1984
- *
1985
- * ```ts
1986
- * client.getCrypto().globalErrorOnUnknownDevices = value;
1987
- * ```
1988
- */
1989
- public setGlobalErrorOnUnknownDevices ( value : boolean ) : void {
1990
- if ( ! this . cryptoBackend ) {
1991
- throw new Error ( "End-to-end encryption disabled" ) ;
1992
- }
1993
- this . cryptoBackend . globalErrorOnUnknownDevices = value ;
1994
- }
1995
-
1996
- /**
1997
- * @returns whether to error on unknown devices
1998
- *
1999
- * This API is currently UNSTABLE and may change or be removed without notice.
2000
- */
2001
- public getGlobalErrorOnUnknownDevices ( ) : boolean {
2002
- if ( ! this . cryptoBackend ) {
2003
- throw new Error ( "End-to-end encryption disabled" ) ;
2004
- }
2005
- return this . cryptoBackend . globalErrorOnUnknownDevices ;
2006
- }
2007
-
2008
1973
/**
2009
1974
* Whether encryption is enabled for a room.
2010
1975
* @param roomId - the room id to query.
You can’t perform that action at this time.
0 commit comments