Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chat #193

Merged
merged 4 commits into from
Jul 17, 2024
Merged

Fix chat #193

merged 4 commits into from
Jul 17, 2024

Conversation

jmicko
Copy link
Owner

@jmicko jmicko commented Jul 17, 2024

Fix a bug where all previous chats would disappear when any user sends a new message. This happened because the cache would trim itself down to 1000 messages at every message, but it would do this for bot messages and chat messages combined. There were a lot of bot messages, so it would fill that limit quickly and chats would disappear.

Current fix is to separate the bot and chat messages in the cache, and limit them individually to 1000. This works but the whole thing really needs to be reworked from the ground up as it's just a big pile of feature creep with zero plan from the start. Another day.

@jmicko jmicko merged commit dd950c1 into master Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant