mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Updates
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import { InstanceLocal, localAddInstance } from '@utils/slices/instancesSlice'
|
||||
import * as AuthSession from 'expo-auth-session'
|
||||
import Constants from 'expo-constants'
|
||||
import React, { useEffect } from 'react'
|
||||
import { useQueryClient } from 'react-query'
|
||||
import { useDispatch } from 'react-redux'
|
||||
@ -16,17 +15,9 @@ export interface Props {
|
||||
|
||||
const InstanceAuth = React.memo(
|
||||
({ instanceDomain, instanceUri, appData, goBack }: Props) => {
|
||||
let redirectUri: string
|
||||
switch (Constants.manifest.releaseChannel) {
|
||||
case 'production':
|
||||
case 'staging':
|
||||
case 'testing':
|
||||
redirectUri = 'tooot://expo-auth-session'
|
||||
break
|
||||
default:
|
||||
redirectUri = 'exp://127.0.0.1:19000'
|
||||
break
|
||||
}
|
||||
|
||||
const redirectUri = AuthSession.makeRedirectUri({ useProxy: false })
|
||||
|
||||
const navigation = useNavigation()
|
||||
const queryClient = useQueryClient()
|
||||
const dispatch = useDispatch()
|
||||
|
@ -23,11 +23,11 @@ const Names: React.FC<{ accounts: Mastodon.Account[] }> = ({ accounts }) => {
|
||||
return (
|
||||
<Text numberOfLines={1}>
|
||||
<Text style={[styles.namesLeading, { color: theme.secondary }]}>
|
||||
{t('shared.header.conversation.withAccounts')}{' '}
|
||||
{t('shared.header.conversation.withAccounts')}
|
||||
</Text>
|
||||
{accounts.map((account, index) => (
|
||||
<Text key={account.id} numberOfLines={1}>
|
||||
{index !== 0 ? ', ' : undefined}
|
||||
{index !== 0 ? t('common:separator') : undefined}
|
||||
<ParseEmojis
|
||||
content={account.display_name || account.username}
|
||||
emojis={account.emojis}
|
||||
|
Reference in New Issue
Block a user