Skip to content

Commit

Permalink
fix timeline announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Jan 2, 2024
1 parent 1316ce5 commit a347b21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/view/timeline_page/timeline_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ class AnnoucementInfo extends ConsumerWidget {
const AnnoucementInfo({super.key, required this.tabSetting});

void announcementsRoute(BuildContext context, WidgetRef ref) {
final account = ref.read(accountProvider(tabSetting.acct));
final account = tabSetting.acct.username.isEmpty
? Account.demoAccount(tabSetting.acct.host, null)
: ref.watch(accountProvider(tabSetting.acct));
context.pushRoute(AnnouncementRoute(account: account));
}

Expand Down

0 comments on commit a347b21

Please sign in to comment.