1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

This now returns DeviceTrustLevel too

This commit is contained in:
David Baker
2019-11-15 14:42:06 +00:00
parent 97dff4640a
commit 6d0237ec71

View File

@@ -1033,10 +1033,7 @@ wrapCryptoFuncs(MatrixClient, [
*
* @param {MatrixEvent} event event to be checked
*
* @returns {integer} a bit mask indicating how the user is trusted (if at all)
* - returnValue & 1: device marked as verified
* - returnValue & 2: trust-on-first-use cross-signing key
* - returnValue & 4: user's cross-signing key is verified
* @returns {DeviceTrustLevel}
*/
MatrixClient.prototype.checkEventSenderTrust = async function(event) {
const device = await this.getEventSenderDeviceInfo(event);