Page MenuHomePhabricator

D7347.id25666.diff
No OneTemporary

D7347.id25666.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
@@ -690,6 +690,9 @@
updateText = (text: string) => {
this.setState({ text, textEdited: true });
+ if (this.isEditMode()) {
+ return;
+ }
this.saveDraft(text);
};
@@ -788,7 +791,15 @@
};
onPressExitEditMode = () => {
- this.props.inputState?.setEditedMessage(null);
+ this.exitEditMode();
+ };
+
+ exitEditMode = () => {
+ this.props.inputState?.setEditedMessage(null, () => {
+ this.updateText(this.props.draft);
+ this.focusAndUpdateButtonsVisibility();
+ this.updateSendButton(this.props.draft);
+ });
};
onPressJoin = () => {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 10:02 AM (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2440841
Default Alt Text
D7347.id25666.diff (777 B)

Event Timeline