-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Activity Status not being rendered when adding reactions as per sample #3473
Copy link
Copy link
Closed
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.Required for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.Required for internal Azure reporting. Do not delete.p1Painful if we don't fix, won't block releasingPainful if we don't fix, won't block releasing
Milestone
Metadata
Metadata
Assignees
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.Indicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.Required for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.Required for internal Azure reporting. Do not delete.p1Painful if we don't fix, won't block releasingPainful if we don't fix, won't block releasing
Adding reaction buttons as per https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/05.custom-components/d.reaction-buttons/ results in the Activity Status (eg "5 minutes ago") not being rendered. Running the demo page associated with the sample shows the same issue (See screenshot)
I came across the issue while upgrading an older webchat from version 4.5 to 4.10. In the debugging I did for that the renderActivityStatus and renderAvatar functions are not being passed through as properties to the StackedLayout.
I realised after that that the sample had also changed, but the updated sample also displays the same issue.
Screenshots
From https://microsoft.github.io/BotFramework-WebChat/05.custom-components/d.reaction-buttons/
Debug screenshots from the bot i'm upgrading:
Props from StackedLayout bot message without reactions

Props from StackedLayout bot message with reactions

I haven't had a chance to update the code to match the updated reaction sample, but as stated the outcome (the missing status) is the same on the demo page.
I will update the code to use the new recommended syntax, but it appears based on the new sample that it will still be an issue.
Version
Version: 4.10 (Upgrading from 4.5)
Using NPM package
Embeded in iFrame
Describe the bug
When adding middleware to add reactions, the Activity Status and Avatar are not rendered.
Steps to reproduce
Expected behavior
Expect message to render as per normal, with additional reaction elements.
[Bug]