You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Use basic read path from JS SDK for reactions
This displays existing reactions correctly in the action bar and reaction row, but it doesn't yet update after a new reaction is sent.
This commit is contained in:
@ -28,6 +28,8 @@ import { isContentActionable } from '../../../utils/EventUtils';
|
||||
export default class MessageActionBar extends React.PureComponent {
|
||||
static propTypes = {
|
||||
mxEvent: PropTypes.object.isRequired,
|
||||
// The Relations model from the JS SDK for reactions to `mxEvent`
|
||||
reactions: PropTypes.object,
|
||||
permalinkCreator: PropTypes.object,
|
||||
getTile: PropTypes.func,
|
||||
getReplyThread: PropTypes.func,
|
||||
@ -113,6 +115,7 @@ export default class MessageActionBar extends React.PureComponent {
|
||||
return <ReactionDimension
|
||||
title={_t("Agree or Disagree")}
|
||||
options={options}
|
||||
reactions={this.props.reactions}
|
||||
/>;
|
||||
}
|
||||
|
||||
@ -135,6 +138,7 @@ export default class MessageActionBar extends React.PureComponent {
|
||||
return <ReactionDimension
|
||||
title={_t("Like or Dislike")}
|
||||
options={options}
|
||||
reactions={this.props.reactions}
|
||||
/>;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user