Description
As a first step of poll support (#164), we should render poll messages.
For product context, see https://zulip.com/help/create-a-poll .
For details of this part of the API… unfortunately this is one of the few remaining parts of the Zulip API that is effectively undocumented, and one has to resort to reverse-engineering. Two useful resources for reference are:
- The implementation in zulip-mobile, which comes from reverse-engineering and embodies notes about the format.
- This lives mainly in
src/webview/html/message.js
, in particularwidgetBody
. (Here "widget" is a term this part of Zulip sometimes uses for an abstraction whose primary example is polls.) - See also types
Submessage
,SubmessageData
,WidgetEventData
, andWidgetData
insrc/api/modelTypes.js
, and their jsdoc.
- This lives mainly in
- The implementation in Zulip web.
- Part of this is in JS code that's shared with zulip-mobile: see
web/shared/src/poll_data.js
and its neighborpoll_data.js.flow
. This is used by the zulip-mobile implementation mentioned above. - The web-only code that consumes that
poll_data
module may also be informative.
- Part of this is in JS code that's shared with zulip-mobile: see
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done