Matthieu-LAURENT39 / maubot-characterai

MIT License
3 stars 0 forks source link

Make typing context manager reentrant #1

Open Matthieu-LAURENT39 opened 11 months ago

Matthieu-LAURENT39 commented 11 months ago

Currently, if the bot replies to 2 different messages in the same channel, it will clear the typing indicator when it replies to the first message. Making the typing ctx manager could fix the issue.

One potential issue is if sending a message clears the typing indicator. In that case, not much we can do, except maybe use another lock, or move the current lock to completely encapsulate the typing indicator.