Page MenuHomePhabricator

D7448.id25159.diff
No OneTemporary

D7448.id25159.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
@@ -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

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)

Event Timeline