remove several services.globals config wrappers

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-03-31 03:00:53 +00:00
1 parent d60920c728
commit d3b65af616
12 files changed
+34 -84

No files matched your search

+4 -4
View File
@@ -205,7 +205,7 @@ pub(crate) async fn delete_timezone_key_route(
services.users.set_timezone(&body.user_id, None);
if services.globals.allow_local_presence() {
if services.config.allow_local_presence {
// Presence update
services
.presence
@@ -233,7 +233,7 @@ pub(crate) async fn set_timezone_key_route(
services.users.set_timezone(&body.user_id, body.tz.clone());
if services.globals.allow_local_presence() {
if services.config.allow_local_presence {
// Presence update
services
.presence
@@ -326,7 +326,7 @@ pub(crate) async fn set_profile_key_route(
);
}
if services.globals.allow_local_presence() {
if services.config.allow_local_presence {
// Presence update
services
.presence
@@ -385,7 +385,7 @@ pub(crate) async fn delete_profile_key_route(
.set_profile_key(&body.user_id, &body.key_name, None);
}
if services.globals.allow_local_presence() {
if services.config.allow_local_presence {
// Presence update
services
.presence