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

@ -82,7 +82,7 @@ export default class ReactionDimension extends React.PureComponent {
if (mxEvent.isRedacted()) {
return false;
}
return mxEvent.getContent()["m.relates_to"].key === option;
return mxEvent.getRelation().key === option;
});
if (!reactionForOption) {
continue;