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.

input_pill: Remove (now) unused custom stream logic.

evykassirerc19ecf7c072a
diff --git a/web/src/input_pill.ts b/web/src/input_pill.ts
index 160449fce98..bc1e94084df 100644
--- a/web/src/input_pill.ts
+++ b/web/src/input_pill.ts
@@ -8,7 +8,6 @@ import render_input_pill from "../templates/input_pill.hbs";
import * as blueslip from "./blueslip";
import * as keydown_util from "./keydown_util";
import type {SearchUserPill} from "./search_pill";
-import type {StreamSubscription} from "./sub_store";
import * as ui_util from "./ui_util";
// See https://zulip.readthedocs.io/en/latest/subsystems/input-pills.html
@@ -18,7 +17,6 @@ export type InputPillItem<ItemType> = {
type: string;
// Used for search pills
operator?: string;
- stream?: StreamSubscription;
} & ItemType;
export type InputPillConfig = {
@@ -62,8 +60,6 @@ type InputPillStore<ItemType> = {
type InputPillRenderingDetails = {
display_value: string;
- has_stream?: boolean;
- stream?: StreamSubscription;
};
// These are the functions that are exposed to other modules.
@@ -165,11 +161,6 @@ export function create<ItemType>(
const opts: InputPillRenderingDetails = {
display_value: item.display_value,
};
-
- if (item.type === "stream" && item.stream) {
- opts.has_stream = true;
- opts.stream = item.stream;
- }
pill_html = render_input_pill(opts);
}
const payload: InputPill<ItemType> = {