index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorMichael Telatynski <[email protected]>2020-06-14 13:15:28 +0100
committerMichael Telatynski <[email protected]>2020-06-14 13:15:28 +0100
commitbe05452c7031a1d2f2dfdaeca153808665763c83 (patch)
tree786bddd7536a2b03e518c8b54b813500d0660ef8
parent583650cf7d3cc7ae9b70d51db3342b1e3d60997d (diff)
downloadmatrix-js-sdk-be05452c7031a1d2f2dfdaeca153808665763c83.tar.gz
Fix tests
Signed-off-by: Michael Telatynski <[email protected]>
-rw-r--r--src/pushprocessor.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pushprocessor.js b/src/pushprocessor.js
index 0fca1a43..ecbd1bef 100644
--- a/src/pushprocessor.js
+++ b/src/pushprocessor.js
@@ -90,6 +90,9 @@ export function PushProcessor(client) {
++ruleKindIndex) {
const kind = RULEKINDS_IN_ORDER[ruleKindIndex];
const ruleset = kindset[kind];
+ if (!ruleset) {
+ continue;
+ }
for (let ruleIndex = 0; ruleIndex < ruleset.length; ++ruleIndex) {
const rule = ruleset[ruleIndex];