Fix issue after rebase

This commit is contained in:
Benoit Marty 2019-06-25 12:10:34 +02:00 committed by Benoit Marty
parent abb1c3f3c4
commit ab0141a5c6
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,6 @@ class SenderNotificationPermissionCondition(val key: String) : Condition(Kind.se


fun isSatisfied(event: Event, powerLevels: PowerLevels): Boolean {
return event.sender != null && powerLevels.getUserPowerLevel(event.sender) >= powerLevels.notificationLevel(key)
return event.senderId != null && powerLevels.getUserPowerLevel(event.senderId) >= powerLevels.notificationLevel(key)
}
}