You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The React component seems to only forward activities that are typing or message to the activityMiddleware. This means I can't write client side code to react to bot events.
Thanks for reporting this issue -- I am able to repro, and this will need to be fixed.
Notes to fixer: createCoreMiddleware.js on line 28 simply returns the next activity if it's not of type message or typing. @cwhitten@compulim Do we want Web Chat to display anything when special activities are sent? Or can we just make sure that the middleware passes all activities on and leave it at that?
In BasicTranscript.js:30, we are filtering what to show on the screen. We need to change the filter, there are multiple ways to do that (i.e. need discussion):
Un-filter everything in BasicTranscript.js:30
Then, use createCoreMiddleware.js to filter out postBack, event, and other activities that was originally filtered
Un-filter only certain types of activities, for example, un-filter event activity
Use createCoreMiddleware.js to filter them out again
Personally, I lean toward un-filtering all
Either case, we also need to modify shouldShowTimestamp(), because it is relying on shouldShowActivity() right now. If we move the filter to middleware, it might broke timestamp grouping.
We might be able to fix timestamp grouping by looking at the last outcome of middleware (return false means it is hidden), so we can kind of redo the logic without shouldShowTimestamp.
The React component seems to only forward activities that are
typing
ormessage
to the activityMiddleware. This means I can't write client side code to react to bot events.Using bot v4, if I send an activity like this
and in the client side, I hook in an activityMiddleware
when I check the browser console, only the
typing
andmessage
activities are sent through to the middleware. No other activities show up.The text was updated successfully, but these errors were encountered: