Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_fade: Remove duplicate `AllVisibilityPolicies` type.

Varun Singh3d6dcf8fe5f8
diff --git a/web/src/compose_fade.ts b/web/src/compose_fade.ts
index 0bb16be821b..d0d999b3ef5 100644
--- a/web/src/compose_fade.ts
+++ b/web/src/compose_fade.ts
@@ -10,15 +10,9 @@ import * as message_viewport from "./message_viewport";
import * as people from "./people";
import * as rows from "./rows";
import type {TopicLink} from "./types";
+import type {AllVisibilityPolicies} from "./user_topics";
import * as util from "./util";
-type AllVisibilityPolicies = {
- INHERIT: 0;
- MUTED: 1;
- UNMUTED: 2;
- FOLLOWED: 3;
-};
-
// TODO/TypeScript: Move this to message_list_view.js when it's migrated to TypeScript.
type MessageContainer = {
background_color: string;
diff --git a/web/src/user_topics.ts b/web/src/user_topics.ts
index b535b20bc96..4d7575599db 100644
--- a/web/src/user_topics.ts
+++ b/web/src/user_topics.ts
@@ -18,13 +18,6 @@ import {get_time_from_date_muted} from "./util";
export type ServerUserTopic = z.infer<typeof user_topic_schema>;
-export type AllVisibilityPolicies = {
- INHERIT: 0;
- MUTED: 1;
- UNMUTED: 2;
- FOLLOWED: 3;
-};
-
export type UserTopic = {
stream_id: number;
stream: string;
@@ -43,6 +36,13 @@ const all_user_topics = new Map<
}>
>();
+export type AllVisibilityPolicies = {
+ INHERIT: 0;
+ MUTED: 1;
+ UNMUTED: 2;
+ FOLLOWED: 3;
+};
+
export const all_visibility_policies = {
INHERIT: 0,
MUTED: 1,