You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
fix NPE biting yannick due to broken rules
This commit is contained in:
@@ -211,6 +211,10 @@ function PushProcessor(client) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const eventFulfillsEventMatchCondition = function(cond, ev) {
|
const eventFulfillsEventMatchCondition = function(cond, ev) {
|
||||||
|
if (!cond.key) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const val = valueForDottedKey(cond.key, ev);
|
const val = valueForDottedKey(cond.key, ev);
|
||||||
if (!val || typeof val != 'string') {
|
if (!val || typeof val != 'string') {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user