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
@@ -141,7 +141,7 @@
inlineEngagement = (
0;
- const threadsContainerClasses = classNames({
- [css.threadsContainer]: threadInfo && !reactionsExist,
- [css.threadsSplitContainer]: threadInfo && reactionsExist,
+ const sidebarContainerClasses = classNames({
+ [css.sidebarContainer]: sidebarThreadInfo && !reactionsExist,
+ [css.sidebarSplitContainer]: sidebarThreadInfo && reactionsExist,
});
const reactionsContainerClasses = classNames({
- [css.reactionsContainer]: reactionsExist && !threadInfo,
- [css.reactionsSplitContainer]: reactionsExist && threadInfo,
+ [css.reactionsContainer]: reactionsExist && !sidebarThreadInfo,
+ [css.reactionsSplitContainer]: reactionsExist && sidebarThreadInfo,
});
- const onClickThreadInner = useOnClickThread(threadInfo);
+ const onClickSidebarInner = useOnClickThread(sidebarThreadInfo);
- const onClickThread = React.useCallback(
+ const onClickSidebar = React.useCallback(
(event: SyntheticEvent) => {
popModal();
- onClickThreadInner(event);
+ onClickSidebarInner(event);
},
- [popModal, onClickThreadInner],
+ [popModal, onClickSidebarInner],
);
const sidebarItem = React.useMemo(() => {
- if (!threadInfo || !repliesText) {
+ if (!sidebarThreadInfo || !repliesText) {
return null;
}
return (
-
+
{repliesText}
);
- }, [threadInfo, repliesText, onClickThread, threadsContainerClasses]);
+ }, [sidebarThreadInfo, repliesText, onClickSidebar, sidebarContainerClasses]);
const onClickReactions = React.useCallback(
(event: SyntheticEvent) => {
@@ -103,7 +103,7 @@
[css.messageLabelRight]: !isLeft,
[css.onlyMessageLabel]: !sidebarItem && !reactionsList,
});
- const messageLabel = React.useMemo(() => {
+ const editedLabel = React.useMemo(() => {
if (!label) {
return null;
}
@@ -118,7 +118,7 @@
if (isLeft) {
body = (
<>
- {messageLabel}
+ {editedLabel}
{sidebarItem}
{reactionsList}
>
@@ -128,7 +128,7 @@
<>
{sidebarItem}
{reactionsList}
- {messageLabel}
+ {editedLabel}
>
);
}
diff --git a/web/chat/robotext-message.react.js b/web/chat/robotext-message.react.js
--- a/web/chat/robotext-message.react.js
+++ b/web/chat/robotext-message.react.js
@@ -43,7 +43,7 @@
inlineEngagement = (