mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
This replaces the former non-functional StateHandler stub with a dictionary-like state object. Accessing it will will read and store strings in the BotUserStateData model. Each bot has a limited state size. To enforce this limit while keeping data updates efficient, StateHandler caches the expensive query for getting a bot's total state size. Assignments to a key then only need to fetch that entry's previous size, if any, and compare it to the new entry's size.
4.2 KiB
4.2 KiB