base: Fix a typo

master
Damir Jelić 2021-02-10 09:15:25 +01:00
parent e437aea012
commit 19b78be93f
1 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ impl AmbiguityCache {
let old_display_name = if let Some(event) = old_event {
if matches!(event.content.membership, Join | Invite) {
let dispaly_name = if let Some(d) = changes
let display_name = if let Some(d) = changes
.profiles
.get(room_id)
.and_then(|p| p.get(&member_event.state_key))
@ -213,7 +213,7 @@ impl AmbiguityCache {
event.content.displayname.clone()
};
Some(dispaly_name.unwrap_or_else(|| event.state_key.localpart().to_string()))
Some(display_name.unwrap_or_else(|| event.state_key.localpart().to_string()))
} else {
None
}