Skip to content

Commit

Permalink
fix(neon_framework): Skip displaying user status icon if offline
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <[email protected]>
  • Loading branch information
provokateurin committed Dec 24, 2023
1 parent f2d8516 commit cd0c01b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/neon_framework/lib/src/widgets/user_avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ class _UserAvatarState extends State<NeonUserAvatar> {
),
);
} 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(
Expand Down

0 comments on commit cd0c01b

Please sign in to comment.