Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Move all polls processing to events-sdk & prep for stable polls #7517

Merged
merged 7 commits into from
Jan 17, 2022

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Jan 12, 2022

Requires matrix-org/matrix-js-sdk#2102
Builds on #7462

After this change, polls will support the full range of extensible events for both parsing and generation. The events-sdk has been specifically built to keep producing m.text variations of events though, for support with mobile's polls implementation.

This additionally fixes some bugs with the implementation - some cases of invalid event were being counted as unrenderable when in fact they are spoiled or similar.


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://61e1ea929f4ef329164f83c5--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@turt2live turt2live added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jan 12, 2022
@turt2live turt2live changed the title Move all polls processing to events-sdk Move all polls processing to events-sdk & prep for stable polls Jan 13, 2022
This makes polls support the full range of extensible events (both parsing and generation).
@turt2live turt2live marked this pull request as ready for review January 14, 2022 03:24
@turt2live turt2live requested a review from a team as a code owner January 14, 2022 03:24
Copy link
Contributor

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - one minor comment and one question to resolve.

src/components/views/dialogs/EndPollDialog.tsx Outdated Show resolved Hide resolved
test/components/views/messages/MPollBody-test.tsx Outdated Show resolved Hide resolved
@turt2live turt2live merged commit 65987e6 into develop Jan 17, 2022
@turt2live turt2live deleted the travis/extev-polls branch January 17, 2022 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants