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

Hide suggested actions not destinated to the user #1706

Merged

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Feb 7, 2019

Fix #1057

Background

Suggested actions (spec here) can specify to field to show the suggested actions only for a set of users.

Today, we did not filter suggested actions based on the to field.

This fix will not show suggested actions with a to field targeting another user. For backward compatibility reason, if the to field is empty or not defined, we will continue to show suggested actions.

Changelog

Fixed

  • Fix #1057. Fixed suggested actions destinated for other recipients should not show up, by @compulim in PR #1706

@coveralls
Copy link

coveralls commented Feb 7, 2019

Coverage Status

Coverage increased (+0.6%) to 53.843% when pulling 57064d4 on compulim:feat-suggested-actions-for-others into 2d438d8 on Microsoft:master.

Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor nit

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
__tests__/suggestedActions.js Outdated Show resolved Hide resolved
__tests__/suggestedActions.js Outdated Show resolved Hide resolved
Copy link

@justinwilaby justinwilaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming the build failure is addressed.

@cwhitten cwhitten merged commit 9cc3c85 into microsoft:master Feb 9, 2019
@compulim compulim deleted the feat-suggested-actions-for-others branch February 9, 2019 00:16
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.

SuggestedActions that are accidentally sent to the bot are being rendered for the user
7 participants