Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated string #3756

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed
- Update translations (2024-04-04) #3746
- Remove deprecated translations #3756

### Fixed
- fix chat audit dialog was going out of viewport on smaller screens #3736
Expand Down
11 changes: 3 additions & 8 deletions src/renderer/components/composer/DisabledMessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const DisabledMessageInput = ({ reason }: Props) => {
case DisabledChatReasons.DEADDROP:
return tx('messaging_disabled_deaddrop')
case DisabledChatReasons.DEVICE_CHAT:
return tx('messaging_disabled_device_chat')
// To not clutter UI, hide reasoning bar for "Device Messages"
return null
case DisabledChatReasons.UNKNOWN:
// Unknown cases are likely to be caused by a new case introduced by a new core update that is not yet handled here,
// but we don't want to crash the UI
Expand All @@ -29,13 +30,7 @@ const DisabledMessageInput = ({ reason }: Props) => {
}
}, [reason, tx])

// If no reason was given we return no component
if (!reason) {
return null
}

// If we're in the "device message" chat we also do not want to show anything
if (reason === DisabledChatReasons.DEVICE_CHAT) {
if (!reasonMessage) {
return null
}

Expand Down
Loading