emoji refactor: Let emoji.js own the data.

We now only use page_params.realm_emoji at
intialization time, and then settings_emoji
gets the data from emoji.js.
This commit is contained in:
Steve Howell
2020-07-23 22:39:22 +00:00
committed by Anders Kaseorg
parent d11c6686a1
commit 5280b87f19
4 changed files with 16 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ exports.populate_emoji = function () {
return;
}
const emoji_data = page_params.realm_emoji;
const emoji_data = emoji.get_server_realm_emoji_data();
for (const emoji of Object.values(emoji_data)) {
// Add people.js data for the user here.