Autofocus search and fix bugs

Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Tulir Asokan 2019-10-15 18:22:18 +03:00
parent 824685ae64
commit 7acae6dc32
3 changed files with 16 additions and 5 deletions

View file

@ -90,11 +90,14 @@ export default class MessageActionBar extends React.PureComponent {
const buttonRect = ev.target.getBoundingClientRect();
const getReactions = () => {
if (!this.props.reactions) {
return [];
}
const userId = MatrixClientPeg.get().getUserId();
const myAnnotations = this.props.reactions.getAnnotationsBySender()[userId];
return Object.fromEntries([...myAnnotations]
.filter(event => !event.isRedacted())
.map(event => [event.getRelation().key, event.getId()]))
.map(event => [event.getRelation().key, event.getId()]));
};
const menuOptions = {