Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3184794
D7448.id25159.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
D7448.id25159.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
@@ -462,6 +462,7 @@
);
let joinButton = null;
const threadColor = `#${this.props.threadInfo.color}`;
+ const isEditMode = this.isEditMode();
if (!isMember && canJoin && !this.props.threadCreationInProgress) {
let buttonContent;
if (this.props.joinThreadLoadingStatus === 'loading') {
@@ -507,7 +508,7 @@
let typeaheadTooltip = null;
- if (typeaheadRegexMatches) {
+ if (typeaheadRegexMatches && !isEditMode) {
const typeaheadMatchedStrings = {
textBeforeAtSymbol: typeaheadRegexMatches[1] ?? '',
usernamePrefix: typeaheadRegexMatches[4] ?? '',
@@ -573,7 +574,6 @@
);
let editedMessage;
- const isEditMode = this.isEditMode();
if (isEditMode && this.props.editedMessagePreview) {
const { message } = this.props.editedMessagePreview;
editedMessage = (
@@ -630,11 +630,15 @@
</TouchableOpacity>
);
const threadColor = `#${this.props.threadInfo.color}`;
+ const expandoButtonsViewStyle = [this.props.styles.innerExpandoButtons];
+ if (this.isEditMode()) {
+ expandoButtonsViewStyle.push({ display: 'none' });
+ }
return (
<TouchableWithoutFeedback onPress={this.dismissKeyboard}>
<View style={this.props.styles.inputContainer}>
<AnimatedView style={this.expandoButtonsStyle}>
- <View style={this.props.styles.innerExpandoButtons}>
+ <View style={expandoButtonsViewStyle}>
{this.state.buttonsExpanded ? expandoButton : null}
<TouchableOpacity
onPress={this.showMediaGallery}
@@ -940,7 +944,7 @@
}
expandButtons = () => {
- if (this.state.buttonsExpanded) {
+ if (this.state.buttonsExpanded || this.isEditMode()) {
return;
}
this.targetExpandoButtonsOpen.setValue(1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 11:59 AM (18 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2451965
Default Alt Text
D7448.id25159.diff (1 KB)
Attached To
Mode
D7448: [native] Disable typeahead and media buttons in edit mode
Attached
Detach File
Event Timeline
Log In to Comment