diff options
author | 2022-10-22 15:43:38 +0530 | |
---|---|---|
committer | 2022-10-22 10:13:38 +0000 | |
commit | 8870f43b9c04a429b2071f3284e898bda478d74b (patch) | |
tree | 2856ee99374048a26af5899aff89cf40ffa514a3 /src/containers/settings | |
parent | 6.2.1-nightly.25 [skip ci] (diff) | |
download | ferdium-app-8870f43b9c04a429b2071f3284e898bda478d74b.tar.gz ferdium-app-8870f43b9c04a429b2071f3284e898bda478d74b.tar.zst ferdium-app-8870f43b9c04a429b2071f3284e898bda478d74b.zip |
Add service-level option 'isMediaBadgeEnabled' defaulted to false (#688)
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index 0c7e3aa07..d0f0c779d 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -49,6 +49,10 @@ const messages = defineMessages({ | |||
49 | id: 'settings.service.form.enableBadge', | 49 | id: 'settings.service.form.enableBadge', |
50 | defaultMessage: 'Show unread message badges', | 50 | defaultMessage: 'Show unread message badges', |
51 | }, | 51 | }, |
52 | enableMediaBadge: { | ||
53 | id: 'settings.service.form.enableMediaBadge', | ||
54 | defaultMessage: 'Enable Media Play Indicator', | ||
55 | }, | ||
52 | enableAudio: { | 56 | enableAudio: { |
53 | id: 'settings.service.form.enableAudio', | 57 | id: 'settings.service.form.enableAudio', |
54 | defaultMessage: 'Enable audio', | 58 | defaultMessage: 'Enable audio', |
@@ -206,6 +210,11 @@ class EditServiceScreen extends Component<EditServicesScreenProps> { | |||
206 | value: service?.isBadgeEnabled, | 210 | value: service?.isBadgeEnabled, |
207 | default: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, | 211 | default: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, |
208 | }, | 212 | }, |
213 | isMediaBadgeEnabled: { | ||
214 | label: intl.formatMessage(messages.enableMediaBadge), | ||
215 | value: service?.isMediaBadgeEnabled, | ||
216 | default: DEFAULT_SERVICE_SETTINGS.isMediaBadgeEnabled, | ||
217 | }, | ||
209 | trapLinkClicks: { | 218 | trapLinkClicks: { |
210 | label: intl.formatMessage(messages.trapLinkClicks), | 219 | label: intl.formatMessage(messages.trapLinkClicks), |
211 | value: service?.trapLinkClicks, | 220 | value: service?.trapLinkClicks, |