1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 08:25:16 +00:00

Register indpendent service token

This commit is contained in:
2021-04-12 17:00:08 +02:00
parent 1b48bcb3c9
commit 5d63cd8945
5 changed files with 59 additions and 6 deletions

View File

@ -154,6 +154,11 @@ impl Config {
pub fn server_listen_address(&self) -> String {
format!("{}:{}", self.listen_address, self.port)
}
/// Check if independent push notifications service is enabled
pub fn is_independent_push_notifications_service_enabled(&self) -> bool {
self.independent_push_service.is_some()
}
}
/// Get an instance of the configuration