Description

Manage blocker state

Members


<static> handledList

Description

Get list of handles that have already been checked during current session, meaning bio was requested and checked for blocking.

Returns

<static> pendingQueue

Description

Get the queue that holds discovered handles waiting to be processed. When handle is in queue, the handle has been found, but bio has not been checked yet.

Returns

<static> whiteList

Description

Get the list of whitelisted handles. Whitelisted handles may contain block words, but user has explicitly bypassed the block on this user.

Returns

<static> lastBioTimestamp

Description

Get/set the timestamp of last API bio request.

Returns
  • if undefined, request had never been made

<static, readonly> lastBioExpired

Description

Whether it has been "long enough" since last bio request.

Returns
  • true when it has been long enough.

<static> tokens

Description

Get/set API tokens

Returns

<static, readonly> ready

Description

Check if module is ready to make API calls (true/false).

It needs API tokens from background first and getting them is an async process. Once the API tokens have been gathered, this method will return true, and subsequent API calls should succeed.

Returns
  • true when ready to call API

<static> keyList

Description

Get/set the list of flagged words that lead to blocking

Returns

<static> confirmBlocks

Description

Get/set confirmation setting

Returns