docs(matrix): state where the account prefix appears
This commit is contained in:
parent
79ada8aace
commit
f688cfcdf0
1 changed files with 6 additions and 5 deletions
|
|
@ -112,8 +112,8 @@ Every matrix tool above takes an optional `account` parameter (a name
|
||||||
from this map, or a linked account's) to act as that identity instead
|
from this map, or a linked account's) to act as that identity instead
|
||||||
of the primary one.
|
of the primary one.
|
||||||
|
|
||||||
Declaring an extra account also changes what the agent *receives*: wake
|
Declaring an extra account also changes what the agent *receives*: the
|
||||||
bodies and invite todos gain an `[acct:<name>]` prefix — see
|
summaries of unread-room and invite todos gain an `[acct:<name>]` prefix — see
|
||||||
[Architecture](#architecture) below.
|
[Architecture](#architecture) below.
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
@ -147,9 +147,10 @@ The summary depends on the room's unread state:
|
||||||
use read_room to view, mark_read to clear`
|
use read_room to view, mark_read to clear`
|
||||||
|
|
||||||
**Multi-account prefix**: when the daemon serves more than one account
|
**Multi-account prefix**: when the daemon serves more than one account
|
||||||
(`services.hyperhive.agent.matrixAccounts`), it prefixes every wake body and every invite todo
|
(`services.hyperhive.agent.matrixAccounts`), it prefixes the summary of every
|
||||||
below with `[acct:<name>] `, so a wake arrives as
|
unread-room todo above and every invite todo below with `[acct:<name>] `, so
|
||||||
`[acct:ccc] [matrix] <sender> in <room>: …`. A single-account agent gets the
|
`get_loose_ends` shows
|
||||||
|
`- todo #<id> [matrix <room_id>, …]: [acct:ccc] [matrix] <sender> in <room>: …`. A single-account agent gets the
|
||||||
formats exactly as written — the daemon adds nothing — which is why matching
|
formats exactly as written — the daemon adds nothing — which is why matching
|
||||||
on a leading `[matrix]` works right up until you declare a second account.
|
on a leading `[matrix]` works right up until you declare a second account.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue