Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ts: Move PMListConversation to pm_list_data.
tanujkinkar98907293916ce
diff --git a/web/src/pm_list_data.ts b/web/src/pm_list_data.tsindex f2753feec85..2111b729f6c 100644--- a/web/src/pm_list_data.ts+++ b/web/src/pm_list_data.ts@@ -35,6 +35,10 @@ export function get_active_user_ids_string(): string | undefined {return people.sorted_other_user_ids(user_ids).join(",");}+export type PMListConversation = {+ user_ids_string: string;+};+export type DisplayObject = {recipients: string;user_ids_string: string;diff --git a/web/src/pm_list_dom.ts b/web/src/pm_list_dom.tsindex 07d9b23c583..634fba2ddbc 100644--- a/web/src/pm_list_dom.ts+++ b/web/src/pm_list_dom.ts@@ -3,13 +3,9 @@ import _ from "lodash";import render_more_private_conversations from "../templates/more_pms.hbs";import render_pm_list_item from "../templates/pm_list_item.hbs";+import type {PMListConversation} from "./pm_list_data.ts";import * as vdom from "./vdom.ts";-// TODO/typescript: Move this to pm_list_data-type PMListConversation = {- user_ids_string: string;-};-export type PMNode =| {type: "conversation";