mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
remove show-config admin room command
Just `cat` the config file. Also this code would be very annoying to maintain. Getting rid of this also revealed that another config option is specific to RocksDB, so `cfg`s for that have been added.
This commit is contained in:
parent
a6087e97e1
commit
44088852cf
2 changed files with 3 additions and 107 deletions
|
|
@ -156,9 +156,6 @@ enum AdminCommand {
|
|||
amount: u32,
|
||||
},
|
||||
|
||||
/// Show configuration values
|
||||
ShowConfig,
|
||||
|
||||
/// Reset user password
|
||||
ResetPassword {
|
||||
/// Username of the user for whom the password should be reset
|
||||
|
|
@ -659,13 +656,6 @@ impl Service {
|
|||
|
||||
RoomMessageEventContent::text_plain("Done.")
|
||||
}
|
||||
AdminCommand::ShowConfig => {
|
||||
// Construct and send the response
|
||||
RoomMessageEventContent::text_plain(format!(
|
||||
"{}",
|
||||
services().globals.config
|
||||
))
|
||||
}
|
||||
AdminCommand::ResetPassword {
|
||||
username,
|
||||
} => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue