Page MenuHomePhabricator

D13670.id45028.diff
No OneTemporary

D13670.id45028.diff

diff --git a/web/chat/composed-message.react.js b/web/chat/composed-message.react.js
--- a/web/chat/composed-message.react.js
+++ b/web/chat/composed-message.react.js
@@ -20,7 +20,6 @@
import InlineEngagement from './inline-engagement.react.js';
import UserAvatar from '../avatars/user-avatar.react.js';
import CommIcon from '../comm-icon.react.js';
-import { type InputState, InputStateContext } from '../input/input-state.js';
import { usePushUserProfileModal } from '../modals/user-profile/user-profile-utils.js';
import { useMessageTooltip } from '../tooltips/tooltip-action-utils.js';
import { tooltipPositions } from '../tooltips/tooltip-utils.js';
@@ -61,8 +60,6 @@
type BaseConfig = React.Config<BaseProps, DefaultProps>;
type Props = {
...BaseProps,
- // withInputState
- +inputState: ?InputState,
+onMouseLeave: ?() => mixed,
+onMouseEnter: (event: SyntheticEvent<HTMLDivElement>) => mixed,
+containsInlineEngagement: boolean,
@@ -229,7 +226,6 @@
const ConnectedComposedMessage: React.ComponentType<ConnectedConfig> =
React.memo<BaseConfig>(function ConnectedComposedMessage(props) {
const { item, threadInfo } = props;
- const inputState = React.useContext(InputStateContext);
const { creator } = props.item.messageInfo;
const { isViewer } = creator;
const availablePositions = isViewer
@@ -251,7 +247,6 @@
return (
<ComposedMessage
{...props}
- inputState={inputState}
onMouseLeave={onMouseLeave}
onMouseEnter={onMouseEnter}
containsInlineEngagement={containsInlineEngagement}

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 31, 3:12 AM (16 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2390432
Default Alt Text
D13670.id45028.diff (1 KB)

Event Timeline