@@ -269,7 +269,7 @@ function SaveButtonInner({
|
|||||||
},
|
},
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
Toast.show(_(msg`Feeds updated!`))
|
Toast.show(_(msg({message: 'Feeds updated!', context: 'toast'})))
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
logger.error(err, {message: `FeedCard: failed to update feeds`, pin})
|
logger.error(err, {message: `FeedCard: failed to update feeds`, pin})
|
||||||
Toast.show(_(msg`Failed to update feeds`), 'xmark')
|
Toast.show(_(msg`Failed to update feeds`), 'xmark')
|
||||||
|
|||||||
@@ -173,9 +173,9 @@ function MenuContent({
|
|||||||
const {mutate: muteConvo} = useMuteConvo(convoId, {
|
const {mutate: muteConvo} = useMuteConvo(convoId, {
|
||||||
onSuccess: data => {
|
onSuccess: data => {
|
||||||
if (data.convo.muted) {
|
if (data.convo.muted) {
|
||||||
Toast.show(_(msg`Chat muted`))
|
Toast.show(_(msg({message: 'Chat muted', context: 'toast'})))
|
||||||
} else {
|
} else {
|
||||||
Toast.show(_(msg`Chat unmuted`))
|
Toast.show(_(msg({message: 'Chat unmuted', context: 'toast'})))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onError: () => {
|
onError: () => {
|
||||||
|
|||||||
@@ -69,7 +69,9 @@ export let MessageMenu = ({
|
|||||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
|
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
|
||||||
convo
|
convo
|
||||||
.deleteMessage(message.id)
|
.deleteMessage(message.id)
|
||||||
.then(() => Toast.show(_(msg`Message deleted`)))
|
.then(() =>
|
||||||
|
Toast.show(_(msg({message: 'Message deleted', context: 'toast'}))),
|
||||||
|
)
|
||||||
.catch(() => Toast.show(_(msg`Failed to delete message`)))
|
.catch(() => Toast.show(_(msg`Failed to delete message`)))
|
||||||
}, [_, convo, message.id])
|
}, [_, convo, message.id])
|
||||||
|
|
||||||
|
|||||||
@@ -315,13 +315,13 @@ function DoneStep({
|
|||||||
let toastMsg: string | undefined
|
let toastMsg: string | undefined
|
||||||
if (actions.includes('leave') && actions.includes('block')) {
|
if (actions.includes('leave') && actions.includes('block')) {
|
||||||
btnText = _(msg`Block and Delete`)
|
btnText = _(msg`Block and Delete`)
|
||||||
toastMsg = _(msg`Conversation deleted`)
|
toastMsg = _(msg({message: 'Conversation deleted', context: 'toast'}))
|
||||||
} else if (actions.includes('leave')) {
|
} else if (actions.includes('leave')) {
|
||||||
btnText = _(msg`Delete Conversation`)
|
btnText = _(msg`Delete Conversation`)
|
||||||
toastMsg = _(msg`Conversation deleted`)
|
toastMsg = _(msg({message: 'Conversation deleted', context: 'toast'}))
|
||||||
} else if (actions.includes('block')) {
|
} else if (actions.includes('block')) {
|
||||||
btnText = _(msg`Block User`)
|
btnText = _(msg`Block User`)
|
||||||
toastMsg = _(msg`User blocked`)
|
toastMsg = _(msg({message: 'User blocked', context: 'toast'}))
|
||||||
}
|
}
|
||||||
|
|
||||||
const onPressPrimaryAction = () => {
|
const onPressPrimaryAction = () => {
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ function AppealForm({
|
|||||||
},
|
},
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
control.close()
|
control.close()
|
||||||
Toast.show(_(msg`Appeal submitted`))
|
Toast.show(_(msg({message: 'Appeal submitted', context: 'toast'})))
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ function DialogInner() {
|
|||||||
},
|
},
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
control.close()
|
control.close()
|
||||||
Toast.show(_(msg`Appeal submitted`))
|
Toast.show(_(msg({message: 'Appeal submitted', context: 'toast'})))
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ function Inner({preferences}: {preferences: UsePreferencesQueryResponse}) {
|
|||||||
threadgateAllowUISettingToAllowRecordValue(maybeEditedAllowUI),
|
threadgateAllowUISettingToAllowRecordValue(maybeEditedAllowUI),
|
||||||
postgateEmbeddingRules: maybeEditedPostgate.embeddingRules ?? [],
|
postgateEmbeddingRules: maybeEditedPostgate.embeddingRules ?? [],
|
||||||
})
|
})
|
||||||
Toast.show(_(msg`Settings saved`))
|
Toast.show(_(msg({message: 'Settings saved', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
logger.error(`Failed to save post interaction settings`, {
|
logger.error(`Failed to save post interaction settings`, {
|
||||||
source: 'ModerationInteractionSettingsScreen',
|
source: 'ModerationInteractionSettingsScreen',
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ function DialogInner({
|
|||||||
})
|
})
|
||||||
onUpdate?.()
|
onUpdate?.()
|
||||||
control.close()
|
control.close()
|
||||||
Toast.show(_(msg`Profile updated`))
|
Toast.show(_(msg({message: 'Profile updated', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
logger.error('Failed to update user profile', {message: String(e)})
|
logger.error('Failed to update user profile', {message: String(e)})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ let ProfileHeaderStandard = ({
|
|||||||
const unblockAccount = React.useCallback(async () => {
|
const unblockAccount = React.useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await queueUnblock()
|
await queueUnblock()
|
||||||
Toast.show(_(msg`Account unblocked`))
|
Toast.show(_(msg({message: 'Account unblocked', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to unblock account', {message: e})
|
logger.error('Failed to unblock account', {message: e})
|
||||||
|
|||||||
@@ -77,8 +77,18 @@ export function AboutSettingsScreen({}: Props) {
|
|||||||
setDevModeEnabled(newDevModeEnabled)
|
setDevModeEnabled(newDevModeEnabled)
|
||||||
Toast.show(
|
Toast.show(
|
||||||
newDevModeEnabled
|
newDevModeEnabled
|
||||||
? _(msg`Developer mode enabled`)
|
? _(
|
||||||
: _(msg`Developer mode disabled`),
|
msg({
|
||||||
|
message: 'Developer mode enabled',
|
||||||
|
context: 'toast',
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
: _(
|
||||||
|
msg({
|
||||||
|
message: 'Developer mode disabled',
|
||||||
|
context: 'toast',
|
||||||
|
}),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ function AppPasswordCard({
|
|||||||
|
|
||||||
const onDelete = useCallback(async () => {
|
const onDelete = useCallback(async () => {
|
||||||
await deleteMutation({name: appPassword.name})
|
await deleteMutation({name: appPassword.name})
|
||||||
Toast.show(_(msg`App password deleted`))
|
Toast.show(_(msg({message: 'App password deleted', context: 'toast'})))
|
||||||
}, [deleteMutation, appPassword.name, _])
|
}, [deleteMutation, appPassword.name, _])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export function DisableEmail2FADialog({
|
|||||||
emailAuthFactor: false,
|
emailAuthFactor: false,
|
||||||
})
|
})
|
||||||
await agent.resumeSession(agent.session!)
|
await agent.resumeSession(agent.session!)
|
||||||
Toast.show(_(msg`Email 2FA disabled`))
|
Toast.show(_(msg({message: 'Email 2FA disabled', context: 'toast'})))
|
||||||
}
|
}
|
||||||
control.close()
|
control.close()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export function useNotificationSettingsMutation() {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
Toast.show(_(msg`Preference saved`))
|
Toast.show(_(msg({message: 'Preference saved', context: 'toast'})))
|
||||||
},
|
},
|
||||||
onSettled: () => {
|
onSettled: () => {
|
||||||
invalidateCachedUnreadPage()
|
invalidateCachedUnreadPage()
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ export function usePinnedPostMutation() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (pinCurrentPost) {
|
if (pinCurrentPost) {
|
||||||
Toast.show(_(msg`Post pinned`))
|
Toast.show(_(msg({message: 'Post pinned', context: 'toast'})))
|
||||||
} else {
|
} else {
|
||||||
Toast.show(_(msg`Post unpinned`))
|
Toast.show(_(msg({message: 'Post unpinned', context: 'toast'})))
|
||||||
}
|
}
|
||||||
|
|
||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export function Component() {
|
|||||||
} else {
|
} else {
|
||||||
await agent.com.atproto.server.updateEmail({email: email.trim()})
|
await agent.com.atproto.server.updateEmail({email: email.trim()})
|
||||||
await agent.resumeSession(agent.session!)
|
await agent.resumeSession(agent.session!)
|
||||||
Toast.show(_(msg`Email updated`))
|
Toast.show(_(msg({message: 'Email updated', context: 'toast'})))
|
||||||
setStage(Stages.Done)
|
setStage(Stages.Done)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -80,7 +80,7 @@ export function Component() {
|
|||||||
token: confirmationCode.trim(),
|
token: confirmationCode.trim(),
|
||||||
})
|
})
|
||||||
await agent.resumeSession(agent.session!)
|
await agent.resumeSession(agent.session!)
|
||||||
Toast.show(_(msg`Email updated`))
|
Toast.show(_(msg({message: 'Email updated', context: 'toast'})))
|
||||||
setStage(Stages.Done)
|
setStage(Stages.Done)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setError(cleanError(String(e)))
|
setError(cleanError(String(e)))
|
||||||
|
|||||||
@@ -159,8 +159,8 @@ export function Component({
|
|||||||
})
|
})
|
||||||
Toast.show(
|
Toast.show(
|
||||||
isCurateList
|
isCurateList
|
||||||
? _(msg`User list updated`)
|
? _(msg({message: 'User list updated', context: 'toast'}))
|
||||||
: _(msg`Moderation list updated`),
|
: _(msg({message: 'Moderation list updated', context: 'toast'})),
|
||||||
)
|
)
|
||||||
onSave?.(list.uri)
|
onSave?.(list.uri)
|
||||||
} else {
|
} else {
|
||||||
@@ -173,8 +173,8 @@ export function Component({
|
|||||||
})
|
})
|
||||||
Toast.show(
|
Toast.show(
|
||||||
isCurateList
|
isCurateList
|
||||||
? _(msg`User list created`)
|
? _(msg({message: 'User list created', context: 'toast'}))
|
||||||
: _(msg`Moderation list created`),
|
: _(msg({message: 'Moderation list created', context: 'toast'})),
|
||||||
)
|
)
|
||||||
onSave?.(res.uri)
|
onSave?.(res.uri)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export function Component({
|
|||||||
newUserAvatar,
|
newUserAvatar,
|
||||||
newUserBanner,
|
newUserBanner,
|
||||||
})
|
})
|
||||||
Toast.show(_(msg`Profile updated`))
|
Toast.show(_(msg({message: 'Profile updated', context: 'toast'})))
|
||||||
onUpdate?.()
|
onUpdate?.()
|
||||||
closeModal()
|
closeModal()
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export function Component({
|
|||||||
token: confirmationCode.trim(),
|
token: confirmationCode.trim(),
|
||||||
})
|
})
|
||||||
await agent.resumeSession(agent.session!)
|
await agent.resumeSession(agent.session!)
|
||||||
Toast.show(_(msg`Email verified`))
|
Toast.show(_(msg({message: 'Email verified', context: 'toast'})))
|
||||||
closeModal()
|
closeModal()
|
||||||
onSuccess?.()
|
onSuccess?.()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ let ProfileMenu = ({
|
|||||||
if (profile.viewer?.muted) {
|
if (profile.viewer?.muted) {
|
||||||
try {
|
try {
|
||||||
await queueUnmute()
|
await queueUnmute()
|
||||||
Toast.show(_(msg`Account unmuted`))
|
Toast.show(_(msg({message: 'Account unmuted', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to unmute account', {message: e})
|
logger.error('Failed to unmute account', {message: e})
|
||||||
@@ -114,7 +114,7 @@ let ProfileMenu = ({
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
await queueMute()
|
await queueMute()
|
||||||
Toast.show(_(msg`Account muted`))
|
Toast.show(_(msg({message: 'Account muted', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to mute account', {message: e})
|
logger.error('Failed to mute account', {message: e})
|
||||||
@@ -128,7 +128,7 @@ let ProfileMenu = ({
|
|||||||
if (profile.viewer?.blocking) {
|
if (profile.viewer?.blocking) {
|
||||||
try {
|
try {
|
||||||
await queueUnblock()
|
await queueUnblock()
|
||||||
Toast.show(_(msg`Account unblocked`))
|
Toast.show(_(msg({message: 'Account unblocked', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to unblock account', {message: e})
|
logger.error('Failed to unblock account', {message: e})
|
||||||
@@ -138,7 +138,7 @@ let ProfileMenu = ({
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
await queueBlock()
|
await queueBlock()
|
||||||
Toast.show(_(msg`Account blocked`))
|
Toast.show(_(msg({message: 'Account blocked', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to block account', {message: e})
|
logger.error('Failed to block account', {message: e})
|
||||||
@@ -151,7 +151,7 @@ let ProfileMenu = ({
|
|||||||
const onPressFollowAccount = React.useCallback(async () => {
|
const onPressFollowAccount = React.useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await queueFollow()
|
await queueFollow()
|
||||||
Toast.show(_(msg`Account followed`))
|
Toast.show(_(msg({message: 'Account followed', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to follow account', {message: e})
|
logger.error('Failed to follow account', {message: e})
|
||||||
@@ -163,7 +163,7 @@ let ProfileMenu = ({
|
|||||||
const onPressUnfollowAccount = React.useCallback(async () => {
|
const onPressUnfollowAccount = React.useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await queueUnfollow()
|
await queueUnfollow()
|
||||||
Toast.show(_(msg`Account unfollowed`))
|
Toast.show(_(msg({message: 'Account unfollowed', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to unfollow account', {message: e})
|
logger.error('Failed to unfollow account', {message: e})
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ let PostDropdownMenuItems = ({
|
|||||||
const onDeletePost = React.useCallback(() => {
|
const onDeletePost = React.useCallback(() => {
|
||||||
deletePostMutate({uri: postUri}).then(
|
deletePostMutate({uri: postUri}).then(
|
||||||
() => {
|
() => {
|
||||||
Toast.show(_(msg`Post deleted`))
|
Toast.show(_(msg({message: 'Post deleted', context: 'toast'})))
|
||||||
|
|
||||||
const route = getCurrentRoute(navigation.getState())
|
const route = getCurrentRoute(navigation.getState())
|
||||||
if (route.name === 'PostThread') {
|
if (route.name === 'PostThread') {
|
||||||
@@ -274,7 +274,7 @@ let PostDropdownMenuItems = ({
|
|||||||
item: postUri,
|
item: postUri,
|
||||||
feedContext: postFeedContext,
|
feedContext: postFeedContext,
|
||||||
})
|
})
|
||||||
Toast.show(_(msg`Feedback sent!`))
|
Toast.show(_(msg({message: 'Feedback sent!', context: 'toast'})))
|
||||||
}, [feedFeedback, postUri, postFeedContext, _])
|
}, [feedFeedback, postUri, postFeedContext, _])
|
||||||
|
|
||||||
const onPressShowLess = React.useCallback(() => {
|
const onPressShowLess = React.useCallback(() => {
|
||||||
@@ -283,7 +283,7 @@ let PostDropdownMenuItems = ({
|
|||||||
item: postUri,
|
item: postUri,
|
||||||
feedContext: postFeedContext,
|
feedContext: postFeedContext,
|
||||||
})
|
})
|
||||||
Toast.show(_(msg`Feedback sent!`))
|
Toast.show(_(msg({message: 'Feedback sent!', context: 'toast'})))
|
||||||
}, [feedFeedback, postUri, postFeedContext, _])
|
}, [feedFeedback, postUri, postFeedContext, _])
|
||||||
|
|
||||||
const onSelectChatToShareTo = React.useCallback(
|
const onSelectChatToShareTo = React.useCallback(
|
||||||
@@ -314,7 +314,9 @@ let PostDropdownMenuItems = ({
|
|||||||
: _(msg`Quote post was re-attached`),
|
: _(msg`Quote post was re-attached`),
|
||||||
)
|
)
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
Toast.show(_(msg`Updating quote attachment failed`))
|
Toast.show(
|
||||||
|
_(msg({message: 'Updating quote attachment failed', context: 'toast'})),
|
||||||
|
)
|
||||||
logger.error(`Failed to ${action} quote`, {safeMessage: e.message})
|
logger.error(`Failed to ${action} quote`, {safeMessage: e.message})
|
||||||
}
|
}
|
||||||
}, [_, quoteEmbed, post, toggleQuoteDetachment])
|
}, [_, quoteEmbed, post, toggleQuoteDetachment])
|
||||||
@@ -341,10 +343,12 @@ let PostDropdownMenuItems = ({
|
|||||||
Toast.show(
|
Toast.show(
|
||||||
isHide
|
isHide
|
||||||
? _(msg`Reply was successfully hidden`)
|
? _(msg`Reply was successfully hidden`)
|
||||||
: _(msg`Reply visibility updated`),
|
: _(msg({message: 'Reply visibility updated', context: 'toast'})),
|
||||||
)
|
)
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
Toast.show(_(msg`Updating reply visibility failed`))
|
Toast.show(
|
||||||
|
_(msg({message: 'Updating reply visibility failed', context: 'toast'})),
|
||||||
|
)
|
||||||
logger.error(`Failed to ${action} reply`, {safeMessage: e.message})
|
logger.error(`Failed to ${action} reply`, {safeMessage: e.message})
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
@@ -368,7 +372,7 @@ let PostDropdownMenuItems = ({
|
|||||||
const onBlockAuthor = useCallback(async () => {
|
const onBlockAuthor = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await queueBlock()
|
await queueBlock()
|
||||||
Toast.show(_(msg`Account blocked`))
|
Toast.show(_(msg({message: 'Account blocked', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to block account', {message: e})
|
logger.error('Failed to block account', {message: e})
|
||||||
@@ -381,7 +385,7 @@ let PostDropdownMenuItems = ({
|
|||||||
if (postAuthor.viewer?.muted) {
|
if (postAuthor.viewer?.muted) {
|
||||||
try {
|
try {
|
||||||
await queueUnmute()
|
await queueUnmute()
|
||||||
Toast.show(_(msg`Account unmuted`))
|
Toast.show(_(msg({message: 'Account unmuted', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to unmute account', {message: e})
|
logger.error('Failed to unmute account', {message: e})
|
||||||
@@ -391,7 +395,7 @@ let PostDropdownMenuItems = ({
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
await queueMute()
|
await queueMute()
|
||||||
Toast.show(_(msg`Account muted`))
|
Toast.show(_(msg({message: 'Account muted', context: 'toast'})))
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
if (e?.name !== 'AbortError') {
|
if (e?.name !== 'AbortError') {
|
||||||
logger.error('Failed to mute account', {message: e})
|
logger.error('Failed to mute account', {message: e})
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ function Header({
|
|||||||
const onSubscribeMute = useCallback(async () => {
|
const onSubscribeMute = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await listMuteMutation.mutateAsync({uri: list.uri, mute: true})
|
await listMuteMutation.mutateAsync({uri: list.uri, mute: true})
|
||||||
Toast.show(_(msg`List muted`))
|
Toast.show(_(msg({message: 'List muted', context: 'toast'})))
|
||||||
} catch {
|
} catch {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(
|
_(
|
||||||
@@ -405,7 +405,7 @@ function Header({
|
|||||||
const onUnsubscribeMute = useCallback(async () => {
|
const onUnsubscribeMute = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await listMuteMutation.mutateAsync({uri: list.uri, mute: false})
|
await listMuteMutation.mutateAsync({uri: list.uri, mute: false})
|
||||||
Toast.show(_(msg`List unmuted`))
|
Toast.show(_(msg({message: 'List unmuted', context: 'toast'})))
|
||||||
} catch {
|
} catch {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(
|
_(
|
||||||
@@ -418,7 +418,7 @@ function Header({
|
|||||||
const onSubscribeBlock = useCallback(async () => {
|
const onSubscribeBlock = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await listBlockMutation.mutateAsync({uri: list.uri, block: true})
|
await listBlockMutation.mutateAsync({uri: list.uri, block: true})
|
||||||
Toast.show(_(msg`List blocked`))
|
Toast.show(_(msg({message: 'List blocked', context: 'toast'})))
|
||||||
} catch {
|
} catch {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(
|
_(
|
||||||
@@ -431,7 +431,7 @@ function Header({
|
|||||||
const onUnsubscribeBlock = useCallback(async () => {
|
const onUnsubscribeBlock = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await listBlockMutation.mutateAsync({uri: list.uri, block: false})
|
await listBlockMutation.mutateAsync({uri: list.uri, block: false})
|
||||||
Toast.show(_(msg`List unblocked`))
|
Toast.show(_(msg({message: 'List unblocked', context: 'toast'})))
|
||||||
} catch {
|
} catch {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(
|
_(
|
||||||
@@ -455,7 +455,7 @@ function Header({
|
|||||||
await removeSavedFeed(savedFeedConfig)
|
await removeSavedFeed(savedFeedConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
Toast.show(_(msg`List deleted`))
|
Toast.show(_(msg({message: 'List deleted', context: 'toast'})))
|
||||||
if (navigation.canGoBack()) {
|
if (navigation.canGoBack()) {
|
||||||
navigation.goBack()
|
navigation.goBack()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ function SavedFeedsInner({
|
|||||||
const onSaveChanges = React.useCallback(async () => {
|
const onSaveChanges = React.useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
await overwriteSavedFeeds(currentFeeds)
|
await overwriteSavedFeeds(currentFeeds)
|
||||||
Toast.show(_(msg`Feeds updated!`))
|
Toast.show(_(msg({message: 'Feeds updated!', context: 'toast'})))
|
||||||
navigation.navigate('Feeds')
|
navigation.navigate('Feeds')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Toast.show(_(msg`There was an issue contacting the server`), 'xmark')
|
Toast.show(_(msg`There was an issue contacting the server`), 'xmark')
|
||||||
|
|||||||
Reference in New Issue
Block a user