Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested actions disappearing on message edit #4851

Open
LukasAV opened this issue Feb 3, 2025 · 0 comments
Open

Suggested actions disappearing on message edit #4851

LukasAV opened this issue Feb 3, 2025 · 0 comments
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@LukasAV
Copy link

LukasAV commented Feb 3, 2025

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Versions

[email protected], Nodejs v20.9.0

Describe the bug

When editing a sent message/updating an activity, the suggested actions disappear in MS Teams, regardless whether you specify them in the updated activity or not.

To Reproduce

Steps to reproduce the behavior:

  1. Execute the following code in a dialog step:
    const suggestedAction = MessageFactory.suggestedActions(['Red', 'White', 'Blue'], "What's your favorite color?");
    const response = await stepContext.context.sendActivity(suggestedAction);
    const editedSuggestedAction = MessageFactory.suggestedActions(
      ['Red', 'White', 'Blue'],
      "What's your least favorite color?",
    );
    editedSuggestedAction.id = response.id;
    await stepContext.context.updateActivity(editedSuggestedAction);
  1. The message What's your favorite color? is shown together with the suggested actions, but in the moment the message is updated to What's your least favorite color? the suggested actions disappear

Expected behavior

In the end, the edited message should be shown and the suggested actions should still be visible

Screenshots

original message:

Image

edited message:

Image

Additional context

@LukasAV LukasAV added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

1 participant