Page MenuHomePhabricator

D7792.diff
No OneTemporary

D7792.diff

diff --git a/native/chat/chat-input-bar.react.js b/native/chat/chat-input-bar.react.js
--- a/native/chat/chat-input-bar.react.js
+++ b/native/chat/chat-input-bar.react.js
@@ -838,7 +838,9 @@
isEditMode = () => {
const editState = this.props.inputState?.editState;
- return editState && editState.editedMessage !== null;
+ const isThisThread =
+ editState?.editedMessage?.threadID === this.props.threadInfo.id;
+ return editState && editState.editedMessage !== null && isThisThread;
};
isMessageEdited = () => {
diff --git a/native/chat/composed-message.react.js b/native/chat/composed-message.react.js
--- a/native/chat/composed-message.react.js
+++ b/native/chat/composed-message.react.js
@@ -304,8 +304,12 @@
const deliveryIconOpacity = useDeliveryIconOpacity(props.item);
const shouldRenderAvatars = useShouldRenderAvatars();
const progress = useDerivedValue(() => {
+ const isThisThread =
+ inputState?.editState.editedMessage?.threadID ===
+ props.item.threadInfo.id;
const isHighlighted =
- inputState?.editState.editedMessage?.id === props.item.messageInfo.id;
+ inputState?.editState.editedMessage?.id === props.item.messageInfo.id &&
+ isThisThread;
return withTiming(isHighlighted ? 1 : 0);
});
const editedMessageStyle = useAnimatedStyle(() => {

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 11:14 AM (19 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611475
Default Alt Text
D7792.diff (1 KB)

Event Timeline