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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue