Remove unused
This commit is contained in:
@@ -24,7 +24,6 @@ export function ConvoProvider({
|
|||||||
children,
|
children,
|
||||||
convoId,
|
convoId,
|
||||||
}: Pick<ConvoParams, 'convoId'> & {children: React.ReactNode}) {
|
}: Pick<ConvoParams, 'convoId'> & {children: React.ReactNode}) {
|
||||||
const requestedPollInterval = React.useRef<(() => void) | void>()
|
|
||||||
const isScreenFocused = useIsFocused()
|
const isScreenFocused = useIsFocused()
|
||||||
const {serviceUrl} = useDmServiceUrlStorage()
|
const {serviceUrl} = useDmServiceUrlStorage()
|
||||||
const {getAgent} = useAgent()
|
const {getAgent} = useAgent()
|
||||||
@@ -49,10 +48,6 @@ export function ConvoProvider({
|
|||||||
markAsRead({convoId})
|
markAsRead({convoId})
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
if (requestedPollInterval.current) {
|
|
||||||
requestedPollInterval.current = requestedPollInterval.current()
|
|
||||||
}
|
|
||||||
|
|
||||||
convo.background()
|
convo.background()
|
||||||
markAsRead({convoId})
|
markAsRead({convoId})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user