Skip to content

Conversation

gabog
Copy link
Contributor

@gabog gabog commented Sep 24, 2020

Fixes #4478

(Note: this PR also the changes suggested to the solution submited by @sschutten in #4479)

  • Refactored and cleaned up ShowTypingMiddleware to better align with JS.
  • Added virtual CreateTurnContext method to TestAdapter (that method is present in JS) to make it easier to override manipulate the TurnContext creating in tests.
  • Renamed and cleaned up ShowTypingMiddlewareTests.

Added virtual CreateTurnContext method to TestAdapter (that method is present in JS) to make it easier to manipulate the TrunContext in tests.
Renamed and cleaned up ShowTypingMiddlewareTests.
@johnataylor
Copy link
Member

approved however, I'm wondering whether a better design is to define the skills protocol as not sending typing indicators i.e. contain this logic in the turncontext.send/adapter

that is a stronger (and correct) statement, simplifies this code, and means you can't accidentally write your own typing indicators and expect them to be sent to a parent.

@mrivera-ms mrivera-ms merged commit 17b2a27 into main Sep 24, 2020
@mrivera-ms mrivera-ms deleted the gabog/TypingMiddlewareRefactor branch September 24, 2020 20:44
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.

Avoid sending typing activity when bot is invoked as skill
3 participants