From 748fb544435b4a6d31d097f55b89be9b68ed430a Mon Sep 17 00:00:00 2001 From: shilangyu Date: Thu, 18 Mar 2021 15:58:48 +0100 Subject: [PATCH 1/2] React to defaultAccount changes --- lib/widgets/user_profile.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/user_profile.dart b/lib/widgets/user_profile.dart index 67dcd95..6accf8f 100644 --- a/lib/widgets/user_profile.dart +++ b/lib/widgets/user_profile.dart @@ -47,7 +47,7 @@ class UserProfile extends HookWidget { sort: SortType.active, auth: accountsStore.defaultTokenFor(instanceHost)?.raw, )); - }); + }, [userId, instanceHost]); if (!userDetailsSnap.hasData) { return const Center(child: CircularProgressIndicator()); From c45bb3c6dfc7eba3debcd2e94e1c99c6e212c471 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Thu, 18 Mar 2021 19:34:35 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bdbd7f..0f7eb09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Quote blocks in posts and comments are now much prettier - Code blocks nwo have monospace font. As they should +- Switching accounts in the profile tab now correctly reacts to the change ## v0.3.0 - 2021-02-25