Changeset View
Changeset View
Standalone View
Standalone View
native/chat/chat-input-bar.react.js
Show First 20 Lines • Show All 549 Lines • ▼ Show 20 Lines | if (this.shouldShowTextInput) { | ||||
this.props.threadInfo, | this.props.threadInfo, | ||||
this.props.viewerID, | this.props.viewerID, | ||||
this.props.userInfos, | this.props.userInfos, | ||||
) && | ) && | ||||
threadActualMembers(this.props.threadInfo.members).length === 2 | threadActualMembers(this.props.threadInfo.members).length === 2 | ||||
) { | ) { | ||||
content = ( | content = ( | ||||
<Text style={this.props.styles.explanation}> | <Text style={this.props.styles.explanation}> | ||||
You can't send messages to a user that you've blocked. | You can’t send messages to a user that you’ve blocked. | ||||
</Text> | </Text> | ||||
); | ); | ||||
} else if (isMember) { | } else if (isMember) { | ||||
content = ( | content = ( | ||||
<Text style={this.props.styles.explanation}> | <Text style={this.props.styles.explanation}> | ||||
You don't have permission to send messages. | You don’t have permission to send messages. | ||||
</Text> | </Text> | ||||
); | ); | ||||
} else if (defaultMembersAreVoiced && canJoin) { | } else if (defaultMembersAreVoiced && canJoin) { | ||||
content = null; | content = null; | ||||
} else { | } else { | ||||
content = ( | content = ( | ||||
<Text style={this.props.styles.explanation}> | <Text style={this.props.styles.explanation}> | ||||
You don't have permission to send messages. | You don’t have permission to send messages. | ||||
</Text> | </Text> | ||||
); | ); | ||||
} | } | ||||
const keyboardInputHost = | const keyboardInputHost = | ||||
Platform.OS === 'android' ? null : ( | Platform.OS === 'android' ? null : ( | ||||
<KeyboardInputHost textInputRef={this.textInput} /> | <KeyboardInputHost textInputRef={this.textInput} /> | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 729 Lines • Show Last 20 Lines |