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:
parent
76570beb3c
commit
33885cb864
3 changed files with 7 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue