This commit is contained in:
otsmr 2025-06-01 16:54:29 +02:00
parent 190b16ec9a
commit 5451a1fe89

View file

@ -10,8 +10,12 @@ class ContactAvatar extends StatelessWidget {
final UserData? userData;
final double? fontSize;
const ContactAvatar(
{super.key, this.contact, this.userData, this.fontSize = 20});
const ContactAvatar({
super.key,
this.contact,
this.userData,
this.fontSize = 20,
});
@override
Widget build(BuildContext context) {
@ -19,7 +23,7 @@ class ContactAvatar extends StatelessWidget {
String? avatarSvg;
if (contact != null) {
displayName = getContactDisplayName(contact!);
displayName = getContactDisplayName(contact!).replaceAll("\u0336", "");
avatarSvg = contact!.avatarSvg;
} else if (userData != null) {
displayName = userData!.displayName;