You've already forked matrix-js-sdk
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:
@@ -1033,10 +1033,7 @@ wrapCryptoFuncs(MatrixClient, [
|
|||||||
*
|
*
|
||||||
* @param {MatrixEvent} event event to be checked
|
* @param {MatrixEvent} event event to be checked
|
||||||
*
|
*
|
||||||
* @returns {integer} a bit mask indicating how the user is trusted (if at all)
|
* @returns {DeviceTrustLevel}
|
||||||
* - returnValue & 1: device marked as verified
|
|
||||||
* - returnValue & 2: trust-on-first-use cross-signing key
|
|
||||||
* - returnValue & 4: user's cross-signing key is verified
|
|
||||||
*/
|
*/
|
||||||
MatrixClient.prototype.checkEventSenderTrust = async function(event) {
|
MatrixClient.prototype.checkEventSenderTrust = async function(event) {
|
||||||
const device = await this.getEventSenderDeviceInfo(event);
|
const device = await this.getEventSenderDeviceInfo(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user