1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Revert "remove unnessary manual focussing of composer"

This reverts commit 57abbc4273.
This commit is contained in:
Bruno Windels
2019-07-23 09:13:51 +02:00
parent e3ffdf1dff
commit ceb53dc0bb
5 changed files with 22 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ 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
@@ -85,6 +89,7 @@ export function showUnknownDeviceDialogForMessages(matrixClient, room) {
sendAnywayLabel: _t("Send anyway"),
sendLabel: _t("Send"),
onSend: onSendClicked,
onFinished: focusComposer,
}, 'mx_Dialog_unknownDevice');
});
}