From 0658cb539a4ef6446d8e99be9cb92cb839722c57 Mon Sep 17 00:00:00 2001 From: audric Date: Wed, 4 Aug 2021 10:52:38 +1000 Subject: [PATCH] poll more often for inactive closed groups the issue is that when you start the app, a closed group active at is maybe a day old. so you poll for this pubkey. if the call is a success, all good, you get the latest messages and update the active_at. but if the first call fails (even after retrying), this group will be marked as inactive and will be polled only a tiny little bit until we get new messages. So this commit make sure that we poll more often for closed groups which are considered inactive --- ts/session/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/session/constants.ts b/ts/session/constants.ts index f65b4e708..0ed905b8f 100644 --- a/ts/session/constants.ts +++ b/ts/session/constants.ts @@ -20,7 +20,7 @@ export const TTL_DEFAULT = { export const SWARM_POLLING_TIMEOUT = { ACTIVE: DURATION.SECONDS * 5, MEDIUM_ACTIVE: DURATION.SECONDS * 60, - INACTIVE: DURATION.MINUTES * 60, + INACTIVE: DURATION.SECONDS * 120, }; export const PROTOCOLS = {