Files
Sable/src
Erwan Leboucher 302c1bb298 fix(poll): stop an unreadable response crashing the room
PollEvent treated every m.reference child of a poll as a well formed
vote, reading the answers with optional chaining and then dereferencing
the result. m.relates_to is lifted out of the encrypted content, so a
response that has not decrypted yet still resolves as a child of the
poll while carrying no answers, and rendering the room threw.

PollResponses had the same unguarded read. The vote total's reduce and
a poll start with no answers threw on the same path.

Also align vote counting with MSC3381, shared with the voter list:

- max_selections defaults to 1
- an over long selection is truncated instead of spoiling the vote
- an unknown answer id spoils the whole vote
- an id repeated after truncation counts once
2026-08-16 23:02:03 +02:00
..
2026-08-13 08:25:37 +02:00
2026-04-02 00:00:41 -05:00
2026-08-05 22:52:33 -05:00