Skip to main content

Module account_data

Module account_data 

Source
Expand description

User and room account data storage.

The service stores raw account data events behind monotonic update counters and maintains a secondary index by room, user, and event type. Its streams expose changes for incremental sync.

Modulesยง

direct ๐Ÿ”’
Direct-room account data helpers.
push_rules ๐Ÿ”’
Room push-rule migration helpers.
room_tags ๐Ÿ”’
Room tag account data helpers.

Structsยง

Data ๐Ÿ”’
Service
Stores and queries global and room-scoped account data.

Constantsยง

MAX_RULES
Maximum number of push rules one account may hold.
MAX_RULE_BYTES
Largest match and action data stored for one rule, in bytes.
MAX_RULE_ID_BYTES
Longest rule ID stored, in bytes.

Functionsยง

admits_rule
Whether a ruleset has room for the rule with the given kind and ID.