Support hiding server part of username in message scrollback (#71)

This commit is contained in:
Ulyssa 2023-07-06 23:15:58 -07:00
parent 61aba80be1
commit 64891ec68f
No known key found for this signature in database
GPG key ID: F2873CA2997B83C5
8 changed files with 164 additions and 37 deletions

View file

@ -30,6 +30,7 @@ use crate::{
ProfileConfig,
TunableValues,
UserColor,
UserDisplayStyle,
UserDisplayTunables,
},
message::{
@ -160,6 +161,7 @@ pub fn mock_room() -> RoomInfo {
fetch_id: RoomFetchStatus::NotStarted,
fetch_last: None,
users_typing: None,
display_names: HashMap::new(),
}
}
@ -189,6 +191,7 @@ pub fn mock_tunables() -> TunableValues {
.into_iter()
.collect::<HashMap<_, _>>(),
open_command: None,
username_display: UserDisplayStyle::Username,
}
}