diff --git a/app/assets/javascripts/discourse/controllers/preferences/notifications.js b/app/assets/javascripts/discourse/controllers/preferences/notifications.js index 078d0b3fbb1..5667a55fda9 100644 --- a/app/assets/javascripts/discourse/controllers/preferences/notifications.js +++ b/app/assets/javascripts/discourse/controllers/preferences/notifications.js @@ -85,6 +85,9 @@ export default Controller.extend({ }, { name: I18n.t("user.new_topic_duration.last_here"), value: -2 } ]; + + const caps = Discourse.__container__.lookup("capabilities:main"); + this.isIOS = caps.isIOS; }, actions: { diff --git a/app/assets/javascripts/discourse/templates/preferences/notifications.hbs b/app/assets/javascripts/discourse/templates/preferences/notifications.hbs index 03ca349d677..f3c1b00f527 100644 --- a/app/assets/javascripts/discourse/templates/preferences/notifications.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/notifications.hbs @@ -43,12 +43,14 @@ -
- - {{desktop-notification-config}} -
{{i18n 'user.desktop_notifications.each_browser_note'}}
- {{plugin-outlet name="user-preferences-desktop-notifications" args=(hash model=model save=(action "save"))}} -
+{{#unless isIOS}} +
+ + {{desktop-notification-config}} +
{{i18n 'user.desktop_notifications.each_browser_note'}}
+ {{plugin-outlet name="user-preferences-desktop-notifications" args=(hash model=model save=(action "save"))}} +
+{{/unless}} {{#if siteSettings.enable_personal_messages}}