Skip to content

Commit

Permalink
Merge branch 'lint/tab-settings-ltl-available' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Jan 6, 2024
2 parents 58fe827 + 7524719 commit 6213baf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,20 @@ class TabSettingsAddDialogState extends ConsumerState<TabSettingsPage> {
FutureBuilder(
future: Future(() async {
if (selectedAccount == null && host.isNotEmpty) {
return ref
final meta = await ref
.read(
misskeyProvider(
Account.demoAccount(host, null),
),
)
.meta();
if (selectedTabType != null &&
!isTabTypeAvailable(selectedTabType!, meta)) {
setState(() {
selectedTabType = null;
});
}
return meta;
} else {
return null;
}
Expand Down

0 comments on commit 6213baf

Please sign in to comment.