From b61603a7ad23f9b9e53888c261617e9f02a8724d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Sat, 18 May 2024 21:23:56 +0100 Subject: [PATCH] infinite staletime --- src/state/queries/messages/get-convo-for-members.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/state/queries/messages/get-convo-for-members.ts b/src/state/queries/messages/get-convo-for-members.ts index e565b165c7..9187c1607f 100644 --- a/src/state/queries/messages/get-convo-for-members.ts +++ b/src/state/queries/messages/get-convo-for-members.ts @@ -4,6 +4,7 @@ import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' import {logger} from '#/logger' import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const' import {useAgent} from '#/state/session' +import {STALE} from '..' import {RQKEY as CONVO_KEY} from './conversation' const RQKEY_ROOT = 'convo-for-user' @@ -61,5 +62,6 @@ export function useMaybeConvoForUser(did: string) { return null } }, + staleTime: STALE.INFINITY, }) }