Changeset View
Changeset View
Standalone View
Standalone View
web/chat/chat-input-bar.react.js
Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | ) { | ||||
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 = ( | ||||
<span className={css.explanation}> | <span className={css.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. | ||||
</span> | </span> | ||||
); | ); | ||||
} else if (isMember) { | } else if (isMember) { | ||||
content = ( | content = ( | ||||
<span className={css.explanation}> | <span className={css.explanation}> | ||||
You don't have permission to send messages. | You don’t have permission to send messages. | ||||
</span> | </span> | ||||
); | ); | ||||
} else if (defaultMembersAreVoiced && canJoin) { | } else if (defaultMembersAreVoiced && canJoin) { | ||||
content = null; | content = null; | ||||
} else { | } else { | ||||
content = ( | content = ( | ||||
<span className={css.explanation}> | <span className={css.explanation}> | ||||
You don't have permission to send messages. | You don’t have permission to send messages. | ||||
</span> | </span> | ||||
); | ); | ||||
} | } | ||||
let typeaheadTooltip; | let typeaheadTooltip; | ||||
if ( | if ( | ||||
this.props.inputState.typeaheadState.canBeVisible && | this.props.inputState.typeaheadState.canBeVisible && | ||||
this.props.suggestedUsers.length > 0 && | this.props.suggestedUsers.length > 0 && | ||||
▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines |