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:
J. Ryan Stinnett 2019-05-15 13:46:32 +01:00
parent 76570beb3c
commit 33885cb864
3 changed files with 7 additions and 2 deletions

View file

@ -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}