You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Annotations by sender is now a Set
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user