From cd0c01bb0e6821b17e858fceccd111e09532ed52 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 24 Dec 2023 13:24:45 +0100 Subject: [PATCH] fix(neon_framework): Skip displaying user status icon if offline Signed-off-by: jld3103 --- packages/neon_framework/lib/src/widgets/user_avatar.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/neon_framework/lib/src/widgets/user_avatar.dart b/packages/neon_framework/lib/src/widgets/user_avatar.dart index a3c6a689432..a4410c1938f 100644 --- a/packages/neon_framework/lib/src/widgets/user_avatar.dart +++ b/packages/neon_framework/lib/src/widgets/user_avatar.dart @@ -129,7 +129,10 @@ class _UserAvatarState extends State { ), ); } else if (result.hasData) { - child = NeonServerIcon(icon: 'user-status-${result.data!.status}'); + final type = result.data!.status; + if (type != 'offline') { + child = NeonServerIcon(icon: 'user-status-$type'); + } } return SizedBox.square(