move room version config check out of services.globals
make available_room_versions() non-member associated Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
52adae7553
commit
6e7c73336c
4 changed files with 19 additions and 16 deletions
|
@ -72,14 +72,6 @@ impl crate::Service for Service {
|
|||
registration_token,
|
||||
};
|
||||
|
||||
if !args
|
||||
.server
|
||||
.supported_room_version(&config.default_room_version)
|
||||
{
|
||||
error!(config=?s.config.default_room_version, fallback=?conduwuit::config::default_default_room_version(), "Room version in config isn't supported, falling back to default version");
|
||||
s.config.default_room_version = conduwuit::config::default_default_room_version();
|
||||
};
|
||||
|
||||
Ok(Arc::new(s))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue