1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-01 13:11:10 +03:00

Wire up drag-drop file uploads for the thread view (#7860)

This commit is contained in:
Michael Telatynski
2022-02-22 11:14:56 +00:00
committed by GitHub
parent 42e9ea4540
commit 8fccef86d8
30 changed files with 616 additions and 482 deletions

View File

@@ -396,8 +396,7 @@ class LoggedInView extends React.Component<IProps, IState> {
inputableElement.focus();
} else {
const inThread = !!document.activeElement.closest(".mx_ThreadView");
// refocusing during a paste event will make the
// paste end up in the newly focused element,
// refocusing during a paste event will make the paste end up in the newly focused element,
// so dispatch synchronously before paste happens
dis.dispatch({
action: Action.FocusSendMessageComposer,