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
pull/1823/head
audric 4 years ago
parent bea704ecf0
commit 0658cb539a

@ -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 = {

Loading…
Cancel
Save