refactor avatar component

This commit is contained in:
2026-09-29 13:18:20 +07:00
parent 8073c97c5a
commit 4d116036b9
8 changed files with 100 additions and 207 deletions
+2 -2
View File
@@ -299,9 +299,9 @@ impl Room {
}
/// A stable seed for the room's generated avatar
pub fn display_image_seed(&self, cx: &App) -> SharedString {
pub fn display_image_seed(&self, cx: &App) -> String {
if self.is_group() {
SharedString::from(self.id.to_string())
self.id.to_string()
} else {
self.display_member(cx).avatar_seed()
}