mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Removed webhook notification
This commit is contained in:
@@ -7,6 +7,7 @@ import FlashMessage, { showMessage } from 'react-native-flash-message'
|
||||
import haptics from './haptics'
|
||||
|
||||
const displayMessage = ({
|
||||
duration = 'short',
|
||||
autoHide = true,
|
||||
message,
|
||||
description,
|
||||
@@ -15,6 +16,7 @@ const displayMessage = ({
|
||||
type
|
||||
}:
|
||||
| {
|
||||
duration?: 'short' | 'long'
|
||||
autoHide?: boolean
|
||||
message: string
|
||||
description?: string
|
||||
@@ -23,6 +25,7 @@ const displayMessage = ({
|
||||
type?: undefined
|
||||
}
|
||||
| {
|
||||
duration?: 'short' | 'long'
|
||||
autoHide?: boolean
|
||||
message: string
|
||||
description?: string
|
||||
@@ -46,6 +49,7 @@ const displayMessage = ({
|
||||
}
|
||||
|
||||
showMessage({
|
||||
duration: duration === 'short' ? 1500 : 3000,
|
||||
autoHide,
|
||||
message,
|
||||
description,
|
||||
@@ -80,7 +84,7 @@ const Message = React.memo(
|
||||
backgroundColor: theme.background,
|
||||
shadowColor: theme.primary,
|
||||
shadowOffset: { width: 0, height: 0 },
|
||||
shadowOpacity: mode === 'light' ? 0.16 : 0.32,
|
||||
shadowOpacity: mode === 'light' ? 0.16 : 0.24,
|
||||
shadowRadius: 4
|
||||
}}
|
||||
titleStyle={{
|
||||
|
@@ -1,6 +1,7 @@
|
||||
import ComponentSeparator from '@components/Separator'
|
||||
import { useScrollToTop } from '@react-navigation/native'
|
||||
import { QueryKeyTimeline, useTimelineQuery } from '@utils/queryHooks/timeline'
|
||||
import { getInstanceActive } from '@utils/slices/instancesSlice'
|
||||
import { StyleConstants } from '@utils/styles/constants'
|
||||
import { useTheme } from '@utils/styles/ThemeManager'
|
||||
import React, { RefObject, useCallback, useRef } from 'react'
|
||||
@@ -15,6 +16,7 @@ import Animated, {
|
||||
useAnimatedScrollHandler,
|
||||
useSharedValue
|
||||
} from 'react-native-reanimated'
|
||||
import { useSelector } from 'react-redux'
|
||||
import TimelineEmpty from './Timeline/Empty'
|
||||
import TimelineFooter from './Timeline/Footer'
|
||||
import TimelineRefresh, {
|
||||
@@ -40,6 +42,9 @@ const Timeline: React.FC<Props> = ({
|
||||
disableInfinity = false,
|
||||
customProps
|
||||
}) => {
|
||||
// Switching account update timeline
|
||||
useSelector(getInstanceActive)
|
||||
|
||||
const { theme } = useTheme()
|
||||
|
||||
const {
|
||||
|
Reference in New Issue
Block a user