-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement more fine-grained typing notices sending
The previous approach (implemented in dd1dd78) was simple (send typing notices for as long as the "controller" is running), but this proved to be overly simplistic and unable to handle edge-cases: - in multi-user rooms (or rooms with a prefix requirement), the bot used to send a typing notice while "working", but its work consisted of ignoring the message. So it then sent a "not typing" notice. This is wasteful and otherwise problematic - certain clients (like nheko) do not handle this "race" well. - certain reactions (anything other than 🗣️ right now) are meant to be ignored. There's no point in doing the same "typing / not typing" dance - there are other instances where the bot may do work, but doesn't (due to configuration or lack of capabilities) This new more fine-grained implementation of typing notices aims to: - only send a typing notice if actual "slow work" will be done - avoid stopping & restarting typing notices (wasteful) if a chain of work is to be performed (processing voice messages and doing speech-to-text + text-generation + ...). Rather, maintaining typing notice sending throughout
- Loading branch information
1 parent
509f683
commit 3b25b92
Showing
8 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters