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

[Team's Messaging Extension search sample] Unexpected results when searching for any package #16

Open
luchocarbonell opened this issue Dec 19, 2024 · 0 comments
Labels
triage Initial state for our team to determine nessessary action

Comments

@luchocarbonell
Copy link

Version

What package version of the SDK are you using.

  • I'm using the Teams samples from main, so I'm using the local packages.

Describe the bug
A clear and concise description of what the bug is.

  • The query parameter value is always returning an empty string in the OnTeamsMessagingExtensionQueryAsync method in the line 35

To Reproduce
How can we reproduce this error?

  • Follow the steps here to install the bot in Teams.
  • In a chat with the bot in teams, select the bot from a list Image
  • Write a package name
  • The app won't recognize any text that is being passed as it is always returning an empty string.

Please provide Code Snippets, Channel type, and any special configuration we will need to reproduce this problem.

Expected behavior

  • When writing a package name, return the package I'm looking for.

Screenshots
Line with the issue
Image

Additional context
I fixed it by changing the line to this:

text = query?.Parameters?[0]?.Value.ToString() ?? string.Empty;

@luchocarbonell luchocarbonell added the triage Initial state for our team to determine nessessary action label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Initial state for our team to determine nessessary action
Projects
None yet
Development

No branches or pull requests

1 participant