Merged in release/2023-03-03 (pull request #686)

release/2023-03-03

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2023-03-03 17:28:32 +00:00

View File

@@ -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");