You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
FocusComposer -> FocusSendMessageComposer
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -842,7 +842,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||
} else {
|
||||
dis.dispatch({
|
||||
...payload,
|
||||
action: Action.FocusComposer,
|
||||
action: Action.FocusSendMessageComposer,
|
||||
});
|
||||
}
|
||||
break;
|
||||
@@ -1262,7 +1262,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||
ContentMessages.sharedInstance().sendContentListToRoom(
|
||||
ev.dataTransfer.files, this.state.room.roomId, this.context,
|
||||
);
|
||||
dis.fire(Action.FocusComposer);
|
||||
dis.fire(Action.FocusSendMessageComposer);
|
||||
|
||||
this.setState({
|
||||
draggingFile: false,
|
||||
@@ -1564,7 +1564,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||
} else {
|
||||
// Otherwise we have to jump manually
|
||||
this.messagePanel.jumpToLiveTimeline();
|
||||
dis.fire(Action.FocusComposer);
|
||||
dis.fire(Action.FocusSendMessageComposer);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user