index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorHubert Chathi <[email protected]>2020-06-23 15:20:41 -0400
committerHubert Chathi <[email protected]>2020-06-23 15:20:41 -0400
commitfa1dddf06c334743e31955d11fe9fc43013e6adf (patch)
treeab508033764d080d16119ae7e25f3e683cdbcbe6
parent2a78170395519db0a25309cbe8cfd06027053e9b (diff)
downloadmatrix-js-sdk-fa1dddf06c334743e31955d11fe9fc43013e6adf.tar.gz
apply feedback from review
-rw-r--r--src/client.js16
-rw-r--r--src/crypto/index.js1
2 files changed, 0 insertions, 17 deletions
diff --git a/src/client.js b/src/client.js
index fc89de3c..c3601f90 100644
--- a/src/client.js
+++ b/src/client.js
@@ -1170,22 +1170,6 @@ wrapCryptoFuncs(MatrixClient, [
]);
/**
- * Check if the sender of an event is verified
- * The cross-signing API is currently UNSTABLE and may change without notice.
- *
- * @param {MatrixEvent} event event to be checked
- *
- * @returns {DeviceTrustLevel}
- */
-MatrixClient.prototype.checkEventSenderTrust = async function(event) {
- const device = await this.getEventSenderDeviceInfo(event);
- if (!device) {
- return 0;
- }
- return await this._crypto.checkDeviceTrust(event.getSender(), device.deviceId);
-};
-
-/**
* Get information about the encryption of an event
*
* @function module:client~MatrixClient#getEventEncryptionInfo
diff --git a/src/crypto/index.js b/src/crypto/index.js
index 0d3f4153..9228c591 100644
--- a/src/crypto/index.js
+++ b/src/crypto/index.js
@@ -2323,7 +2323,6 @@ Crypto.prototype.getEventEncryptionInfo = function(event) {
ret.authenticated = true;
}
-
// senderKey is the Curve25519 identity key of the device which the event
// was sent from. In the case of Megolm, it's actually the Curve25519
// identity key of the device which set up the Megolm session.