remove optional automatic display name emoji

This commit is contained in:
Charles Hall 2024-04-29 21:34:47 -07:00
parent 17a0b34309
commit cddf6991f2
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 2 additions and 22 deletions

View file

@ -619,12 +619,7 @@ impl Service {
services().users.create(&user_id, Some(password.as_str()))?;
// Default to pretty displayname
let mut displayname = user_id.localpart().to_owned();
// If enabled append lightning bolt to display name (default true)
if services().globals.enable_lightning_bolt() {
displayname.push_str(" ⚡️");
}
let displayname = user_id.localpart().to_owned();
services()
.users

View file

@ -299,10 +299,6 @@ impl Service {
self.config.default_room_version.clone()
}
pub fn enable_lightning_bolt(&self) -> bool {
self.config.enable_lightning_bolt
}
pub fn trusted_servers(&self) -> &[OwnedServerName] {
&self.config.trusted_servers
}