mirror of https://github.com/vector-im/riot-web
Annotations by sender is now a Set
parent
0e369bd12e
commit
2e7e71556b
|
@ -107,7 +107,7 @@ export default class ReactionDimension extends React.PureComponent {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const userId = MatrixClientPeg.get().getUserId();
|
const userId = MatrixClientPeg.get().getUserId();
|
||||||
return reactions.getAnnotationsBySender()[userId];
|
return [...reactions.getAnnotationsBySender()[userId].values()];
|
||||||
}
|
}
|
||||||
|
|
||||||
onOptionClick = (ev) => {
|
onOptionClick = (ev) => {
|
||||||
|
|
|
@ -80,7 +80,7 @@ export default class ReactionsRow extends React.PureComponent {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const userId = MatrixClientPeg.get().getUserId();
|
const userId = MatrixClientPeg.get().getUserId();
|
||||||
return reactions.getAnnotationsBySender()[userId];
|
return [...reactions.getAnnotationsBySender()[userId].values()];
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue