diff --git a/app/soapbox/components/autosuggest_textarea.js b/app/soapbox/components/autosuggest_textarea.js
index 59a35989b..cdf8629dc 100644
--- a/app/soapbox/components/autosuggest_textarea.js
+++ b/app/soapbox/components/autosuggest_textarea.js
@@ -318,7 +318,7 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
render() {
const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, children } = this.props;
- const { suggestionsHidden } = this.state;
+ const { draggingOver, suggestionsHidden } = this.state;
const style = { direction: 'ltr' };
if (isRtl(value)) {
diff --git a/app/soapbox/features/chats/components/chat_box.js b/app/soapbox/features/chats/components/chat_box.js
index 54199919e..b7f83a8fe 100644
--- a/app/soapbox/features/chats/components/chat_box.js
+++ b/app/soapbox/features/chats/components/chat_box.js
@@ -42,6 +42,7 @@ class ChatBox extends ImmutablePureComponent {
onSetInputRef: PropTypes.func,
me: PropTypes.node,
onAttachment: PropTypes.func,
+ windowState: PropTypes.string,
}
initialState = () => ({
@@ -200,7 +201,6 @@ class ChatBox extends ImmutablePureComponent {
if (e.dataTransfer && e.dataTransfer.files.length >= 1) {
this.handleFiles(e.dataTransfer.files);
- // this.props.dispatch(uploadCompose(e.dataTransfer.files));
}
}
@@ -242,6 +242,16 @@ class ChatBox extends ImmutablePureComponent {
});
}
+ renderUploadArea = () => {
+ const { windowState } = this.props;
+ const { draggingOver } = this.state;
+ if (windowState !== 'open') return null;
+
+ return (
+