From 342c9fed87ebdddedf74243016899cb92ace900e Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 7 Jun 2023 10:26:09 +0200 Subject: [PATCH] neon: Only load user status of status will be shown --- packages/neon/neon/lib/src/widgets/user_avatar.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/neon/neon/lib/src/widgets/user_avatar.dart b/packages/neon/neon/lib/src/widgets/user_avatar.dart index a9613302..3d1643e8 100644 --- a/packages/neon/neon/lib/src/widgets/user_avatar.dart +++ b/packages/neon/neon/lib/src/widgets/user_avatar.dart @@ -35,7 +35,9 @@ class _UserAvatarState extends State { void initState() { super.initState(); - unawaited(_userStatusBloc.load(widget.username)); + if (widget.showStatus) { + unawaited(_userStatusBloc.load(widget.username)); + } } @override