From 4858b633dcc61bfbddcfefc4121bd5d56205f009 Mon Sep 17 00:00:00 2001 From: TJ Durnford Date: Tue, 30 Jul 2019 12:40:09 -0700 Subject: [PATCH] Updated button handles to send messageReaction activities --- samples/09.customization-reaction-buttons/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/09.customization-reaction-buttons/index.html b/samples/09.customization-reaction-buttons/index.html index 9354ce277b..7e91930e56 100644 --- a/samples/09.customization-reaction-buttons/index.html +++ b/samples/09.customization-reaction-buttons/index.html @@ -64,8 +64,8 @@ }); class ActivityWithFeedback extends React.Component { - handleDownvoteButton = () => this.props.postActivity({ type: 'message', name: 'evaluate-activity', value: { activityID: this.props.activityID, helpful: -1 } }) - handleUpvoteButton = () => this.props.postActivity({ type: 'message', name: 'evaluate-activity', value: { activityID: this.props.activityID, helpful: 1 } }) + handleDownvoteButton = () => this.props.postActivity({ type: 'messageReaction', reactionsAdded: [{ activityID: this.props.activityID, helpful: -1 }] }) + handleUpvoteButton = () => this.props.postActivity({ type: 'messageReaction', reactionsAdded: [{ activityID: this.props.activityID, helpful: 1 }] }) render() { const { props } = this;