mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
fix icon
This commit is contained in:
parent
190b16ec9a
commit
5451a1fe89
1 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue