Limited use registration token support
Co-authored-by: Ginger <ginger@gingershaped.computer> Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -12,7 +12,7 @@ use crate::{
|
||||
account_data, admin, appservice, client, config, deactivate, emergency, federation, globals,
|
||||
key_backups,
|
||||
manager::Manager,
|
||||
media, membership, oauth, presence, pusher, resolver,
|
||||
media, membership, oauth, presence, pusher, registration_tokens, resolver,
|
||||
rooms::{self, retention},
|
||||
sending, server_keys,
|
||||
service::{Args, Service},
|
||||
@@ -62,6 +62,7 @@ pub struct Services {
|
||||
pub deactivate: Arc<deactivate::Service>,
|
||||
pub oauth: Arc<oauth::Service>,
|
||||
pub retention: Arc<retention::Service>,
|
||||
pub registration_tokens: Arc<registration_tokens::Service>,
|
||||
|
||||
manager: Mutex<Option<Arc<Manager>>>,
|
||||
pub server: Arc<Server>,
|
||||
@@ -121,6 +122,7 @@ pub async fn build(server: Arc<Server>) -> Result<Arc<Self>> {
|
||||
deactivate: deactivate::Service::build(&args)?,
|
||||
oauth: oauth::Service::build(&args)?,
|
||||
retention: retention::Service::build(&args)?,
|
||||
registration_tokens: registration_tokens::Service::build(&args)?,
|
||||
|
||||
manager: Mutex::new(None),
|
||||
server,
|
||||
@@ -181,6 +183,7 @@ pub(crate) fn services(&self) -> impl Iterator<Item = Arc<dyn Service>> + Send {
|
||||
cast!(self.deactivate),
|
||||
cast!(self.oauth),
|
||||
cast!(self.retention),
|
||||
cast!(self.registration_tokens),
|
||||
]
|
||||
.into_iter()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user