synapse-product/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
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
10785.misc
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
10812.misc
10814.feature Refactor oEmbed previews (#10814) 2021-09-21 16:09:57 +00:00
10815.misc
10816.misc
10817.misc
10823.misc
10829.misc Track why we're evicting from caches (#10829) 2021-09-22 10:59:52 +01:00
10831.misc
10834.misc
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
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