diff --git a/crates/ruma-common/src/power_levels.rs b/crates/ruma-common/src/power_levels.rs index 5158d70c..608f77c3 100644 --- a/crates/ruma-common/src/power_levels.rs +++ b/crates/ruma-common/src/power_levels.rs @@ -31,6 +31,7 @@ impl NotificationPowerLevels { } } + #[cfg(feature = "events")] pub(crate) fn is_default(&self) -> bool { self.room == default_power_level() }