~whereswaldon/arborchat

621e4a8cf2087fc1e408305186efbfe9fef22744 — Andrew Thorp a month ago 656cb58 main
Add invisible metadata specification
M specifications/twig-extensions/index.md => specifications/twig-extensions/index.md +2 -0
@@ 8,3 8,5 @@ Each directory represents a single extension and should include an `index.md` de
    - [toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/active-status/spec.toml)
- [expiration](./specifications/twig-extensions/expiration/)
    - [toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/expiration/spec.toml)
- [invisible](./specifications/twig-extensions/invisible/)
    - [toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/invisible/spec.toml)

A specifications/twig-extensions/invisible/index.md => specifications/twig-extensions/invisible/index.md +9 -0
@@ 0,0 1,9 @@
# Invisible
Twig metadata which indicates whether or not a message is intended to be rendered.
Field specification in [spec.toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/active-status/spec.toml).

## Usage
If a message is intended to be strictly metadata or is otherwise not supposed to
be rendered as a chat message, add the invisibility twig metadata to mark a
message as invisible. It is up to the client to implement how it handles an
"invisible" message, or if it even enforces it.

A specifications/twig-extensions/invisible/spec.toml => specifications/twig-extensions/invisible/spec.toml +5 -0
@@ 0,0 1,5 @@
key-name = "invisible"

[version.1.data]
type = "Byte Array"
description = "No additional metadata is provided; this byte array is empty."