pub(super) fn claimer(
state: &AppState,
caller: Option<&Caller>,
agent: Option<&str>,
block: Option<&str>,
) -> Option<(String, String, Option<String>)>Expand description
Who is asking. A caller with a token is that token’s agent and nobody
else: its registration is the one with its UID (never one a block or a
name it sent points at), and with none its name is its own slug. Without a
token: the registration found by block, then unique name (as
WhoIsWorkingOn does), else the name it sent. None when there is no name
at all.
A caller with a token whose registration is missing (the registry is rebuilt after a restart or an
upgrade, and a pane that was resumed can go unregistered for hours: #2271) still has its pane: the
block whose meta names its UID, which is where Agents list finds it too.