From 3de4212a652b381cea2e137f6e1eef1d79c251cf Mon Sep 17 00:00:00 2001 From: xmflsct Date: Tue, 10 Jan 2023 13:27:47 +0100 Subject: [PATCH] Fix #646 --- package.json | 2 +- src/screens/Tabs/Me/Root/Collections.tsx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 077a8776..36c637e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tooot", - "version": "4.8.0", + "version": "4.8.1", "description": "tooot for Mastodon", "author": "xmflsct ", "license": "GPL-3.0-or-later", diff --git a/src/screens/Tabs/Me/Root/Collections.tsx b/src/screens/Tabs/Me/Root/Collections.tsx index 11a89fb2..b836f42c 100644 --- a/src/screens/Tabs/Me/Root/Collections.tsx +++ b/src/screens/Tabs/Me/Root/Collections.tsx @@ -2,6 +2,7 @@ import { MenuContainer, MenuRow } from '@components/Menu' import { useNavigation } from '@react-navigation/native' import { useAnnouncementQuery } from '@utils/queryHooks/announcement' import { useListsQuery } from '@utils/queryHooks/lists' +import { useFollowedTagsQuery } from '@utils/queryHooks/tags' import { useAccountStorage } from '@utils/storage/actions' import React from 'react' import { useTranslation } from 'react-i18next' @@ -17,6 +18,12 @@ const Collections: React.FC = () => { onSuccess: data => setPageMe({ ...pageMe, lists: { shown: !!data?.length } }) } }) + useFollowedTagsQuery({ + options: { + onSuccess: data => + setPageMe({ ...pageMe, followedTags: { shown: !!data.pages[0].body.length } }) + } + }) useAnnouncementQuery({ showAll: true, options: {