0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-26 14:38:18 +02:00
synapse/changelog.d
Richard van der Hoff 4ecf51812e
Include outlier status in str(event) for V2/V3 events (#10879)
I meant to do this before, in #10591, but because I'm stupid I forgot to do it
for V2 and V3 events.

I've factored the common code out to `EventBase` to save us having two copies
of it.

This means that for `FrozenEvent` we replace `self.get("event_id", None)` with
`self.event_id`, which I think is safe. `get()` is an alias for
`self._dict.get()`, whereas `event_id()` is an `@property` method which looks
up `self._event_id`, which is populated during construction from the same
dict. We don't seem to rely on the fallback, because if the `event_id` key is
absent from the dict then construction of the `EventBase` object will
fail.

Long story short, the only way this could change behaviour is if
`event_dict["event_id"]` is changed *after* the `EventBase` object is
constructed without updating the `_event_id` field, or vice versa - either of
which would be very problematic anyway and the behavior of `str(event)` is the
least of our worries.
2021-09-22 12:30:59 +01:00
..
.gitignore
10659.misc GHA: reintroduce an env var for $GITHUB_HEAD_REF (#10659) 2021-09-20 17:35:16 +01:00
10776.feature Verify ?chunk_id actually corresponds to an insertion event that exists (MSC2716) (#10776) 2021-09-15 09:34:30 +01:00
10777.misc Split out /batch_send meta events to their own fields (MSC2716) (#10777) 2021-09-15 09:30:58 +01:00
10785.misc Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
10796.misc Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
10807.bugfix Allow sending a membership event to unban a user (#10807) 2021-09-21 10:23:34 +00:00
10810.bugfix Prevent logging context going missing on federation request timeout (#10810) 2021-09-14 13:01:30 +01:00
10812.misc Use direct references for some configuration variables (part 2) (#10812) 2021-09-15 08:34:52 -04:00
10814.feature Refactor oEmbed previews (#10814) 2021-09-21 16:09:57 +00:00
10815.misc Name the type of token in "Invalid token" messages (#10815) 2021-09-14 11:25:05 +01:00
10816.misc Make StateFilter frozen so we can hash it (#10816) 2021-09-14 16:35:53 +01:00
10817.misc Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
10823.misc Add type hints to state database module. (#10823) 2021-09-15 09:54:13 -04:00
10829.misc Track why we're evicting from caches (#10829) 2021-09-22 10:59:52 +01:00
10831.misc Require type hints in the handlers module. (#10831) 2021-09-20 08:56:23 -04:00
10834.misc Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
10835.misc Test that state events sent by modules correctly end up in the room's state (#10835) 2021-09-21 17:40:20 +02:00
10838.misc Rename MSC2716 things from chunk to batch to match /batch_send endpoint (#10838) 2021-09-21 15:06:28 -05:00
10839.misc Rename /batch_send query parameter from ?prev_event to more obvious usage with ?prev_event_id (MSC2716) (#10839) 2021-09-21 14:10:01 +01:00
10843.bugfix Fix remove_stale_pushers job on SQLite. (#10843) 2021-09-20 10:26:13 +01:00
10845.doc Fix #10837 by adding JSON encoding/decoding to the Module API example… (#10845) 2021-09-17 18:04:37 +01:00
10856.misc Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
10859.bugfix Allow Synapse Admin API's Room Search to accept non-ASCII characters (#10859) 2021-09-21 08:04:35 -07:00
10867.misc Add types to http.site (#10867) 2021-09-21 16:41:27 +00:00
10869.doc Clear our destination directories before copying files to GitHub pages. (#10869) 2021-09-21 16:32:46 +00:00
10879.misc Include outlier status in str(event) for V2/V3 events (#10879) 2021-09-22 12:30:59 +01:00