IO-2195 Add additional check for conversation query.
This commit is contained in:
@@ -50,7 +50,8 @@ export function ChatPopupComponent({
|
||||
const { loading, data, refetch, called } = useQuery(CONVERSATION_LIST_QUERY, {
|
||||
fetchPolicy: "network-only",
|
||||
nextFetchPolicy: "network-only",
|
||||
...(pollInterval > 0 && chatVisible ? { pollInterval } : {}),
|
||||
skip: !chatVisible,
|
||||
...(pollInterval > 0 ? { pollInterval } : {}),
|
||||
});
|
||||
|
||||
const fcmToken = sessionStorage.getItem("fcmtoken");
|
||||
|
||||
Reference in New Issue
Block a user