1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00
This commit is contained in:
David Baker
2017-10-23 16:50:01 +01:00
parent e33b786f65
commit e7886a55fe

View File

@@ -123,7 +123,7 @@ function PushProcessor(client) {
"device": eventFulfillsDeviceCondition,
"contains_display_name": eventFulfillsDisplayNameCondition,
"room_member_count": eventFulfillsRoomMemberCountCondition,
"sender_notification_permission": eventFulfillsSenderNotificationPermCondition,
"sender_notification_permission": eventFulfillsSenderNotifPermCondition,
};
if (condition_functions[cond.kind]) {
return condition_functions[cond.kind](cond, ev);
@@ -134,7 +134,7 @@ function PushProcessor(client) {
return false;
};
const eventFulfillsSenderNotificationPermCondition = function(cond, ev) {
const eventFulfillsSenderNotifPermCondition = function(cond, ev) {
const notifLevelKey = cond['key'];
if (!notifLevelKey) {
return false;
@@ -159,7 +159,7 @@ function PushProcessor(client) {
}
return ev.sender.powerLevel >= notifLevel;
}
};
const eventFulfillsRoomMemberCountCondition = function(cond, ev) {
if (!cond.is) {