Make the upload_file dispatch synchronous to make Firefox happy about it

This commit is contained in:
Michael Telatynski 2020-09-18 12:33:25 +01:00
parent 780aea1a36
commit d267092b19

View file

@ -675,7 +675,7 @@ export default class RoomView extends React.Component<IProps, IState> {
case Key.U: // Mac returns lowercase
case Key.U.toUpperCase():
if (isOnlyCtrlOrCmdIgnoreShiftKeyEvent(ev) && ev.shiftKey) {
dis.dispatch({ action: "upload_file" });
dis.dispatch({ action: "upload_file" }, true);
handled = true;
}
break;