index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorDavid Baker <[email protected]>2020-06-16 14:27:26 +0100
committerDavid Baker <[email protected]>2020-06-16 14:27:26 +0100
commit1bd80247fd008c5f6e68a92df014e26a53e64552 (patch)
tree037e3a1736d41c9a2df24579fc52892601057555
parent3dece4f46bf3d2ed4a4332c3eef4dfa061688a97 (diff)
downloadmatrix-js-sdk-1bd80247fd008c5f6e68a92df014e26a53e64552.tar.gz
Better variable name
-rw-r--r--src/crypto/verification/request/ToDeviceChannel.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/verification/request/ToDeviceChannel.js b/src/crypto/verification/request/ToDeviceChannel.js
index 5d982013..d04a7585 100644
--- a/src/crypto/verification/request/ToDeviceChannel.js
+++ b/src/crypto/verification/request/ToDeviceChannel.js
@@ -358,9 +358,9 @@ export class ToDeviceRequests {
}
getRequestsInProgress(userId) {
- const requests = this._requestsByUserId.get(userId);
- if (requests) {
- return Array.from(requests.values()).filter(r => r.pending);
+ const requestsByTxnId = this._requestsByUserId.get(userId);
+ if (requestsByTxnId) {
+ return Array.from(requestsByTxnId.values()).filter(r => r.pending);
}
return [];
}