Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
poll_data: Revert to using "canned" instead of -1.
Lalita871d7d90eda
diff --git a/web/shared/src/poll_data.ts b/web/shared/src/poll_data.tsindex a788b14d7af..13568f188ec 100644--- a/web/shared/src/poll_data.ts+++ b/web/shared/src/poll_data.ts@@ -21,7 +21,7 @@ export type PollOptionData = {type PollOption = {option: string;- user_id: number;+ user_id: number | string;votes: Map<number, number>;};@@ -40,7 +40,7 @@ export type PollHandle = {};new_option: {outbound: (option: string) => {type: string; idx: number; option: string};- inbound: (sender_id: number, data: InboundData) => void;+ inbound: (sender_id: number | string, data: InboundData) => void;};question: {outbound: (question: string) => {type: string; question: string} | undefined;@@ -238,7 +238,7 @@ export class PollData {};for (const [i, option] of options.entries()) {- this.handle.new_option.inbound(-1, {+ this.handle.new_option.inbound("canned", {idx: i,option,type: "new_option",