Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32210920
D4464.1765133327.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
D4464.1765133327.diff
View Options
diff --git a/web/chat/chat-thread-composer.react.js b/web/chat/chat-thread-composer.react.js
--- a/web/chat/chat-thread-composer.react.js
+++ b/web/chat/chat-thread-composer.react.js
@@ -23,7 +23,7 @@
};
function ChatThreadComposer(props: Props): React.Node {
- const { userInfoInputArray, otherUserInfos, threadID } = props;
+ const { userInfoInputArray, otherUserInfos, threadID, inputState } = props;
const [usernameInputText, setUsernameInputText] = React.useState('');
@@ -129,6 +129,14 @@
return <div className={css.userSelectedTags}>{labels}</div>;
}, [userInfoInputArray, onRemoveUserFromSelected]);
+ React.useEffect(() => {
+ if (!inputState) {
+ return;
+ }
+ inputState.registerSendCallback(hideSearch);
+ return () => inputState.unregisterSendCallback(hideSearch);
+ }, [hideSearch, inputState]);
+
const threadSearchContainerStyles = React.useMemo(
() =>
classNames(css.threadSearchContainer, {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 6:48 PM (23 m, 13 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5845537
Default Alt Text
D4464.1765133327.diff (967 B)
Attached To
Mode
D4464: [web] Close thread composer after sending a message
Attached
Detach File
Event Timeline
Log In to Comment