Skip to content

Commit

Permalink
Merge pull request #1351 from nextcloud/fix/neon_framework/skip-offli…
Browse files Browse the repository at this point in the history
…ne-user-status-icon
  • Loading branch information
provokateurin authored Dec 24, 2023
2 parents f2d8516 + cd0c01b commit c4b0bff
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 c4b0bff

Please sign in to comment.