Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view_util: Fix return type of get_key_from_message.
Aman Agrawald99a8ff1804a
diff --git a/web/src/recent_view_data.ts b/web/src/recent_view_data.tsindex 0d97e9a9a04..8f3d6bda78d 100644--- a/web/src/recent_view_data.ts+++ b/web/src/recent_view_data.ts@@ -7,7 +7,7 @@ export type TopicData = {participated: boolean;type: "private" | "stream";};-export const topics = new Map<string | undefined, TopicData>();+export const topics = new Map<string, TopicData>();// For stream messages, key is stream-id:topic.// For pms, key is the user IDs to whom the message is being sent.diff --git a/web/src/recent_view_util.ts b/web/src/recent_view_util.tsindex 516ca693095..63811a2d754 100644--- a/web/src/recent_view_util.ts+++ b/web/src/recent_view_util.ts@@ -14,7 +14,7 @@ export function get_topic_key(stream_id: number, topic: string): string {return stream_id + ":" + topic.toLowerCase();}-export function get_key_from_message(msg: Message): string | undefined {+export function get_key_from_message(msg: Message): string {if (msg.type === "private") {// The to_user_ids field on a direct message object is a// string containing the user IDs involved in the message in