+
{ pollStart.question[TEXT_NODE_TYPE] }
+
+ {
+ pollStart.answers.map((answer: IPollAnswer) => {
+ const checked = this.state.selected === answer.id;
+ const classNames = `mx_MPollBody_option${
+ checked ? " mx_MPollBody_option_checked": ""
+ }`;
+ return
this.selectOption(answer.id)}
+ >
+
+
+ { _t("%(number)s votes", { number: 0 }) }
+
+
+ { answer[TEXT_NODE_TYPE] }
+
+
+
+
;
+ })
+ }
+
+
+ { _t( "Based on %(total)s votes", { total: 0 } ) }
+
+
;
+ }
+}
diff --git a/src/components/views/messages/MessageEvent.tsx b/src/components/views/messages/MessageEvent.tsx
index b72e40d194..9590cd1ed7 100644
--- a/src/components/views/messages/MessageEvent.tsx
+++ b/src/components/views/messages/MessageEvent.tsx
@@ -27,6 +27,7 @@ import { MediaEventHelper } from "../../../utils/MediaEventHelper";
import { ReactAnyComponent } from "../../../@types/common";
import { EventType, MsgType } from "matrix-js-sdk/src/@types/event";
import { IBodyProps } from "./IBodyProps";
+import { POLL_START_EVENT_TYPE } from '../../../polls/consts';
// onMessageAllowed is handled internally
interface IProps extends Omit