Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3401264
D7792.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7792.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7792: [native] Don’t display edit mode when user changes thread
Attached
Detach File
Event Timeline
Log In to Comment