Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
emoji: Remove number as possible type for emoji_code.
evykassirer3208235e798a
diff --git a/web/src/emoji.ts b/web/src/emoji.tsindex a29fdbf4fcb..f800af06e32 100644--- a/web/src/emoji.ts+++ b/web/src/emoji.ts@@ -5,7 +5,7 @@ import type {User} from "./people";// This is the data structure that we get from the server on initialization.export type ServerEmoji = {- id: number;+ id: string;author_id: number;deactivated: boolean;name: string;@@ -38,7 +38,7 @@ export type EmoticonTranslation = {};type RealmEmoji = {- id: number;+ id: string;emoji_name: string;emoji_url: string;still_url: string | null;@@ -60,7 +60,7 @@ type EmojiDict = {export type EmojiRenderingDetails = {emoji_name: string;reaction_type: string;- emoji_code: string | number;+ emoji_code: string;url?: string;still_url?: string | null;};diff --git a/web/tests/input_pill.test.js b/web/tests/input_pill.test.jsindex 82ecff5c7b6..822357023e7 100644--- a/web/tests/input_pill.test.js+++ b/web/tests/input_pill.test.js@@ -62,7 +62,7 @@ run_test("basics", ({mock_template}) => {show_user_status_emoji: true,},});- const status_emoji_info = {emoji_code: 5};+ const status_emoji_info = {emoji_code: "5"};// type for a pill can be any string but it needs to be// defined while creating any pill.diff --git a/web/tests/pm_list_data.test.js b/web/tests/pm_list_data.test.jsindex c2a73b2155f..6ed5f8e1e5b 100644--- a/web/tests/pm_list_data.test.js+++ b/web/tests/pm_list_data.test.js@@ -9,7 +9,7 @@ const unread = mock_esm("../src/unread");mock_esm("../src/user_status", {get_status_emoji: () => ({- emoji_code: 20,+ emoji_code: "20",}),});@@ -107,7 +107,7 @@ test("get_conversations", ({override}) => {user_circle_class: "user_circle_empty",user_ids_string: "103",status_emoji_info: {- emoji_code: 20,+ emoji_code: "20",},},{