-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Don't ignore set_tweak
actions with no explicit value
.
#7766
Conversation
(default to True, which is only concretely specified for `highlight`, but it seems only reasonable to generalise)
Are you sure this is the correct interpretation of the spec? See also: https://github.com/matrix-org/matrix-doc/issues/2643 |
The spec is a bit yucky in this regard, but it says that:
However, by omission:
Ideally (imo) the spec should have had the guts to fully define this or not made
|
sorry I'm not entirely following you. Agreed that the spec says I'm obviously missing something else: my understanding was that synapse passes the |
Yes, a tweak with no value is currently discarded.
Converts a list of actions e.g. |
right, what a mess. thanks for explaining. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine, but a test would be nice.
May as well tidy up when I'm here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
(of course: for even more bonus points we'd have a sytest, so that we didn't have to re-learn this decision for every future HS impl...)
* commit '43726783e': (22 commits) 1.17.0rc1 Fix some spelling mistakes / typos. (#7811) `update_membership` declaration: now always returns an event id. (#7809) Improve stacktraces from exceptions in background processes (#7808) Fix `can only concatenate list (not "tuple") to list` exception (#7810) Pass original request headers from workers to the main process. (#7797) Generate real events when we reject invites (#7804) Add `HomeServer.signing_key` property (#7805) Revert "Update the installation docs on apt-transport-https (#7801)" Do not use simplejson in Synapse. (#7800) Stop passing bytes when dumping JSON (#7799) Update the installation docs on apt-transport-https (#7801) shuffle changelog slightly Change Caddy links (old is deprecated) (#7789) Stop populating unused table `local_invites`. (#7793) Refactor getting replication updates from database v2. (#7740) Add libwebp dependency to Dockerfile (#7791) Add documentation for JWT login type and improve sample config. (#7776) Convert the appservice handler to async/await. (#7775) Don't ignore `set_tweak` actions with no explicit `value`. (#7766) ...
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.