You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Use getRelation helper
Use the `getRelation` helper to ensure we always read relation info from the wire content as required in E2E rooms.
This commit is contained in:
@@ -101,7 +101,7 @@ export default class ReactionsRow extends React.PureComponent {
|
||||
if (mxEvent.isRedacted()) {
|
||||
return false;
|
||||
}
|
||||
return mxEvent.getContent()["m.relates_to"].key === content;
|
||||
return mxEvent.getRelation().key === content;
|
||||
});
|
||||
return <ReactionsRowButton
|
||||
key={content}
|
||||
|
||||
Reference in New Issue
Block a user