No need to move config

This commit is contained in:
Eric Eastwood
2026-06-05 14:50:51 -05:00
parent 24e5aa1026
commit fdf809bd49
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ impl VersionsHandler {
.is_feature_enabled(user_id, PerUserExperimentalFeature::MSC3881)
.await?
}
None => PerUserExperimentalFeature::MSC3881.is_globally_enabled(self.config),
None => PerUserExperimentalFeature::MSC3881.is_globally_enabled(&self.config),
};
let msc3575_enabled = match user_id {
@@ -50,7 +50,7 @@ impl VersionsHandler {
.is_feature_enabled(user_id, PerUserExperimentalFeature::MSC3575)
.await?
}
None => PerUserExperimentalFeature::MSC3575.is_globally_enabled(self.config),
None => PerUserExperimentalFeature::MSC3575.is_globally_enabled(&self.config),
};
// TODO: Calculate these once since they shouldn't change after start-up.
+1 -1
View File
@@ -25,7 +25,7 @@ pub enum PerUserExperimentalFeature {
}
impl PerUserExperimentalFeature {
pub fn is_globally_enabled(&self, config: SynapseConfig) -> bool {
pub fn is_globally_enabled(&self, config: &SynapseConfig) -> bool {
match self {
PerUserExperimentalFeature::MSC3881 => config.experimental.msc3881_enabled,
PerUserExperimentalFeature::MSC3575 => config.experimental.msc3575_enabled,