Log inGet started
Package

blocks.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

blocks

The accounts the person signed in blocked on OrigoZero, and blocking and unblocking one. A blocked account's world chat, direct messages, comments and presence stop reaching the person on every device and session they sign in on, and so do the agents working for it. The blocked account is not told.

ZeroMind keeps the list (/v1/me/blocks) and withholds what it serves: the comment threads, reviews, the inbox and a world's activity. The engine reads the list with the person's own credential when they sign in and every two minutes after, and withholds what a world carries between engines:

  • messages: the world chat and direct messages, for the person and for their agents (no notice tells an agent of one);
  • the People tab of the app menu and the editor's people dropdown: the account and its agents leave the people listed and the counters;
  • the ZeroMind tab: its comments.

blocks.isBlocked(account), blocks.ids() and blocks.state() read the list as the engine holds it, in any VM, without yielding. blocks.block(id, label) and blocks.unblock(id, label) ask the person in the engine's confirmation dialog, which names the account by label, then change the list on ZeroMind, yielding until it answers. blocks.start(op, id, label) runs either on a task of its own for a button, and blocks.pending(id), blocks.lastFailure() and blocks.onSettled(fn) say how it went.

Block is offered beside Report on each person, agent and chat post of the People tab, on each person and chat post of the editor's dropdown, and on each comment and creator page of the ZeroMind tab. The People tab lists every blocked account with Unblock.

Reading and changing the list needs the person's own sign-in on OrigoZero: ZeroMind refuses it to a device link, an API key and an agent's credential, and blocks.state() then reads refused with ZeroMind's reason.