Skip to content

Commit

Permalink
Merge pull request #312 from Guocork/Unicode
Browse files Browse the repository at this point in the history
Skip the `@` char when displaying a room Avatar based on its name
  • Loading branch information
kevinaboos authored Jan 2, 2025
2 parents da624f3 + 86669f5 commit f0e91c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sliding_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ fn avatar_from_room_name(room_name: &str) -> RoomPreviewAvatar {
RoomPreviewAvatar::Text(
room_name
.graphemes(true)
.next()
.find(|&g| g != "@")
.map(ToString::to_string)
.unwrap_or_default()
)
Expand Down

0 comments on commit f0e91c1

Please sign in to comment.