Skip to content

Hide suggested actions not destinated to the user#1706

Merged
cwhitten merged 6 commits intomicrosoft:masterfrom
compulim:feat-suggested-actions-for-others
Feb 9, 2019
Merged

Hide suggested actions not destinated to the user#1706
cwhitten merged 6 commits intomicrosoft:masterfrom
compulim:feat-suggested-actions-for-others

Conversation

@compulim
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
Comment thread __tests__/suggestedActions.js Outdated
Comment thread __tests__/suggestedActions.js Outdated
Comment thread packages/core/src/sagas/incomingActivitySaga.js Outdated
Copy link
Copy Markdown

@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