You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
make it work
This commit is contained in:
@@ -418,6 +418,17 @@ MatrixClient.prototype.setGlobalBlacklistUnverifiedDevices = function(value) {
|
||||
this._crypto.setGlobalBlacklistUnverifiedDevices(value);
|
||||
};
|
||||
|
||||
/**
|
||||
* @return {boolean} whether to unilaterally blacklist all
|
||||
* unverified devices
|
||||
*/
|
||||
MatrixClient.prototype.getGlobalBlacklistUnverifiedDevices = function() {
|
||||
if (this._crypto === null) {
|
||||
throw new Error("End-to-end encryption disabled");
|
||||
}
|
||||
return this._crypto.getGlobalBlacklistUnverifiedDevices();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get e2e information on the device that sent an event
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user