remove unnessary manual focussing of composer

now that composer is focused automatically when no other shortcuts
apply, remove the manual focusing we have in place where it's not needed
This commit is contained in:
Bruno Windels 2019-07-15 18:21:10 +02:00
parent 4adea67eb3
commit 57abbc4273
5 changed files with 0 additions and 22 deletions

View file

@ -65,10 +65,6 @@ export async function getUnknownDevicesForRoom(matrixClient, room) {
return unknownDevices;
}
function focusComposer() {
dis.dispatch({action: 'focus_composer'});
}
/**
* Show the UnknownDeviceDialog for a given room. The dialog will inform the user
* that messages they sent to this room have not been sent due to unknown devices
@ -90,7 +86,6 @@ export function showUnknownDeviceDialogForMessages(matrixClient, room) {
sendAnywayLabel: _t("Send anyway"),
sendLabel: _t("Send"),
onSend: onSendClicked,
onFinished: focusComposer,
}, 'mx_Dialog_unknownDevice');
});
}