mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-11-12 22:42:29 -05:00
Include the original event in /relations (#5626)
When asking for the relations of an event, include the original event in the response. This will mostly be used for efficiently showing edit history, but could be useful in other circumstances.
This commit is contained in:
parent
af67c7c1de
commit
d88421ab03
4 changed files with 12 additions and 4 deletions
|
|
@ -126,6 +126,11 @@ class RelationsTestCase(unittest.HomeserverTestCase):
|
|||
channel.json_body["chunk"][0],
|
||||
)
|
||||
|
||||
# We also expect to get the original event (the id of which is self.parent_id)
|
||||
self.assertEquals(
|
||||
channel.json_body["original_event"]["event_id"], self.parent_id
|
||||
)
|
||||
|
||||
# Make sure next_batch has something in it that looks like it could be a
|
||||
# valid token.
|
||||
self.assertIsInstance(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue