Page MenuHomePhorge

D6368.1768431826.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D6368.1768431826.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
@@ -628,20 +628,35 @@
});
}, 400);
- focusAndUpdateText = (text: string) => {
- const { textInput } = this;
- if (!textInput) {
- return;
- }
+ focusAndUpdateTextAndSelection = (text: string, selection: Selection) => {
+ this.setState({
+ text,
+ textEdited: true,
+ selection,
+ });
+ this.saveDraft(text);
+
+ this.focusAndUpdateButtonsVisibility();
+ };
+ focusAndUpdateText = (text: string) => {
const currentText = this.state.text;
if (!currentText.startsWith(text)) {
const prependedText = text.concat(currentText);
this.updateText(prependedText);
- this.immediatelyShowSendButton();
- this.immediatelyHideButtons();
}
+ this.focusAndUpdateButtonsVisibility();
+ };
+
+ focusAndUpdateButtonsVisibility = () => {
+ const { textInput } = this;
+ if (!textInput) {
+ return;
+ }
+
+ this.immediatelyShowSendButton();
+ this.immediatelyHideButtons();
textInput.focus();
};

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 14, 11:03 PM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5934478
Default Alt Text
D6368.1768431826.diff (1 KB)

Event Timeline