1
0
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:
Matthew Hodgson
2019-11-26 18:35:25 +00:00
parent b1924d4db6
commit 5b8b0a8aa3

View File

@@ -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);
}; };