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
@@ -1178,7 +1178,7 @@ Crypto.prototype.saveDeviceList = function(delay) {
|
|||||||
Crypto.prototype.setDeviceVerification = async function(
|
Crypto.prototype.setDeviceVerification = async function(
|
||||||
userId, deviceId, verified, blocked, known,
|
userId, deviceId, verified, blocked, known,
|
||||||
) {
|
) {
|
||||||
// get rid of any undefined's here so we can just check
|
// get rid of any `undefined`s here so we can just check
|
||||||
// for null rather than null or undefined
|
// for null rather than null or undefined
|
||||||
if (verified === undefined) verified = null;
|
if (verified === undefined) verified = null;
|
||||||
if (blocked === undefined) blocked = null;
|
if (blocked === undefined) blocked = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user