diff --git a/fastlane/metadata/en-US/release_notes.txt b/fastlane/metadata/en-US/release_notes.txt index 5bc2a4ea..c030d165 100644 --- a/fastlane/metadata/en-US/release_notes.txt +++ b/fastlane/metadata/en-US/release_notes.txt @@ -1,6 +1,7 @@ Enjoy toooting! This version includes following improvements and fixes: - Auto fetch remote content in conversations! - Remember last read position in timeline! +- Follow a user with other logged in accounts - Allowing adding more context of reports - Option to disable autoplay gif - Hide boosts from users diff --git a/fastlane/metadata/zh-Hans/release_notes.txt b/fastlane/metadata/zh-Hans/release_notes.txt index bb70b250..7079eb59 100644 --- a/fastlane/metadata/zh-Hans/release_notes.txt +++ b/fastlane/metadata/zh-Hans/release_notes.txt @@ -1,6 +1,7 @@ toooting愉快!此版本包括以下改进和修复: - 主动获取对话的远程内容 - 自动加载上次我的关注的阅读位置 +- 用其它已登陆的账户关注用户 - 可添加举报细节 - 新增暂停自动播放gif动画选项 - 隐藏用户的转嘟 diff --git a/src/components/AccountButton.tsx b/src/components/AccountButton.tsx index ff3e497f..187169fc 100644 --- a/src/components/AccountButton.tsx +++ b/src/components/AccountButton.tsx @@ -1,44 +1,30 @@ import { useNavigation } from '@react-navigation/native' -import { generateAccountKey, getAccountDetails, setAccount } from '@utils/storage/actions' -import { StorageGlobal } from '@utils/storage/global' +import { ReadableAccountType, setAccount } from '@utils/storage/actions' import { StyleConstants } from '@utils/styles/constants' import React from 'react' import Button from './Button' import haptics from './haptics' interface Props { - account: NonNullable[number] - selected?: boolean + account: ReadableAccountType additionalActions?: () => void } -const AccountButton: React.FC = ({ account, selected = false, additionalActions }) => { +const AccountButton: React.FC = ({ account, additionalActions }) => { const navigation = useNavigation() - const accountDetails = getAccountDetails( - ['auth.domain', 'auth.account.acct', 'auth.account.domain', 'auth.account.id'], - account - ) - if (!accountDetails) return null return (