): void {
+ user_settings = params.user_settings;
+}
diff --git a/static/js/user_status.js b/static/js/user_status.js
index 73b5d502e3..d1360e8248 100644
--- a/static/js/user_status.js
+++ b/static/js/user_status.js
@@ -2,7 +2,7 @@ import * as emoji from "../shared/js/emoji";
import * as blueslip from "./blueslip";
import * as channel from "./channel";
-import {page_params} from "./page_params";
+import {user_settings} from "./user_settings";
const away_user_ids = new Set();
const user_info = new Map();
@@ -80,7 +80,7 @@ export function set_status_emoji(opts) {
emoji_name: opts.emoji_name,
emoji_code: opts.emoji_code,
reaction_type: opts.reaction_type,
- emoji_alt_code: page_params.emojiset === "text",
+ emoji_alt_code: user_settings.emojiset === "text",
...emoji.get_emoji_details_by_name(opts.emoji_name),
});
}
diff --git a/static/shared/js/emoji.js b/static/shared/js/emoji.js
index 5d7ef58747..bf353f4031 100644
--- a/static/shared/js/emoji.js
+++ b/static/shared/js/emoji.js
@@ -43,8 +43,8 @@ function build_emoticon_translations() {
....
]
- We build up this list of ~12 emoticon translations
- even if page_params.translate_emoticons is false, since
+ We build up this list of ~12 emoticon translations even
+ if user_settings.translate_emoticons is false, since
that setting can be flipped via live update events.
On the other hand, we assume that emoticon_conversions
won't change until the next reload, which is fine for
diff --git a/static/templates/settings/account_settings.hbs b/static/templates/settings/account_settings.hbs
index f9e38129e5..e458f163b5 100644
--- a/static/templates/settings/account_settings.hbs
+++ b/static/templates/settings/account_settings.hbs
@@ -101,7 +101,7 @@
{{> settings_checkbox
setting_name="presence_enabled"
- is_checked=page_params.presence_enabled
+ is_checked=user_settings.presence_enabled
label=settings_label.presence_enabled
help_link="/help/status-and-availability"}}
diff --git a/static/templates/settings/display_settings.hbs b/static/templates/settings/display_settings.hbs
index fcd9b2fbab..04e72b1b09 100644
--- a/static/templates/settings/display_settings.hbs
+++ b/static/templates/settings/display_settings.hbs
@@ -41,7 +41,7 @@
{{#each display_settings.settings.user_display_settings}}
{{> settings_checkbox
setting_name=this
- is_checked=(lookup ../page_params this)
+ is_checked=(lookup ../user_settings this)
label=(lookup ../settings_label this)
render_only=(lookup ../display_settings.render_only this)}}
{{/each}}
@@ -76,7 +76,7 @@