Remove newlines from group names, chat names and the displayname (#1845)

This commit is contained in:
Hocuri
2020-08-20 09:05:08 +02:00
committed by GitHub
parent 3faf968b7c
commit b9ca7b8ace
4 changed files with 29 additions and 6 deletions

View File

@@ -232,6 +232,10 @@ impl Context {
});
ret
}
Config::Displayname => {
let value = value.map(improve_single_line_input);
self.sql.set_raw_config(self, key, value.as_deref()).await
}
_ => self.sql.set_raw_config(self, key, value).await,
}
}