Fix: Editing a poll will silently change it to a closed poll (#9809)

* add failing test case

* dont reset poll disclosure on editing
This commit is contained in:
Kerry 2022-12-22 10:29:11 +13:00 committed by GitHub
parent 8660293424
commit 9a8545bf34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

@ -138,7 +138,7 @@ export default class PollCreateDialog extends ScrollableBaseModal<IProps, IState
const pollStart = PollStartEvent.from(
this.state.question.trim(),
this.state.options.map((a) => a.trim()).filter((a) => !!a),
this.state.kind,
this.state.kind.name,
).serialize();
if (!this.props.editingMxEvent) {