Lightning bolt optional

This commit is contained in:
Jim 2022-06-23 06:58:34 +00:00 committed by Timo Kösters
parent 9ee199b0c3
commit 49bd75b856
5 changed files with 29 additions and 14 deletions

View file

@ -267,6 +267,10 @@ impl Globals {
self.config.default_room_version.clone()
}
pub fn enable_lightning_bolt(&self) -> bool {
self.config.enable_lightning_bolt
}
pub fn trusted_servers(&self) -> &[Box<ServerName>] {
&self.config.trusted_servers
}