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
log outbound to_device msgs for tracking keyshares
This commit is contained in:
@@ -2333,6 +2333,12 @@ MatrixBaseApis.prototype.sendToDevice = function(
|
|||||||
messages: contentMap,
|
messages: contentMap,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const targets = Object.keys(contentMap).reduce((obj, key) => {
|
||||||
|
obj[key] = Object.keys(contentMap[key]);
|
||||||
|
return obj;
|
||||||
|
}, {});
|
||||||
|
logger.log(`PUT ${path}`, targets);
|
||||||
|
|
||||||
return this._http.authedRequest(undefined, "PUT", path, undefined, body);
|
return this._http.authedRequest(undefined, "PUT", path, undefined, body);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user