Skip to content

Commit

Permalink
Added MESSAGE_INPUT__PLACE_HOLDER__FROZEN to StringSet (#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho authored May 23, 2024
1 parent 28cfcb5 commit 49d57ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ export const MessageInputWrapperView = React.forwardRef((
setMentionedUsers={setMentionedUsers}
placeholder={
(quoteMessage && stringSet.MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER)
|| ((disabled || isDisabledBecauseFrozen(currentChannel)) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED)
|| (isDisabledBecauseFrozen(currentChannel) && stringSet.MESSAGE_INPUT__PLACE_HOLDER__FROZEN)
|| (isDisabledBecauseMuted(currentChannel) && (isMobile ? stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED_SHORT : stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED))
|| (disabled && stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED)
|| undefined
}
ref={(ref || messageInputRef) as any}
Expand Down
1 change: 1 addition & 0 deletions src/ui/Label/stringSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const stringSet = {
// Message Input
MESSAGE_INPUT__PLACE_HOLDER: 'Enter message',
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: 'Chat is unavailable in this channel',
MESSAGE_INPUT__PLACE_HOLDER__FROZEN: 'Chat is unavailable in this channel',
MESSAGE_INPUT__PLACE_HOLDER__MUTED: 'Chat is unavailable because you\'re muted',
MESSAGE_INPUT__PLACE_HOLDER__MUTED_SHORT: 'You\'re muted',
MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER: 'Reply to message',
Expand Down

0 comments on commit 49d57ae

Please sign in to comment.