Make the upload_file dispatch synchronous to make Firefox happy about it

pull/21833/head
Michael Telatynski 2020-09-18 12:33:25 +01:00
parent 780aea1a36
commit d267092b19
1 changed files with 1 additions and 1 deletions

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;