1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Make things work again

This commit is contained in:
Kegan Dougal
2015-12-09 10:42:05 +00:00
parent 2b659656cc
commit 3543abf7bd
3 changed files with 134 additions and 31 deletions

View File

@@ -195,7 +195,7 @@ function PushProcessor(client) {
};
var matchingRuleForEventWithRulesets = function(ev, rulesets) {
if (!rulesets) { return null; }
if (!rulesets || !rulesets.device) { return null; }
if (ev.user_id == client.credentials.userId) { return null; }
var allDevNames = Object.keys(rulesets.device);