Autofocus search and fix bugs
Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
parent
824685ae64
commit
7acae6dc32
3 changed files with 16 additions and 5 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue