mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 17:19:00 -05:00
Fix redactions. Fix 'age' key
This commit is contained in:
parent
4d6af0dde3
commit
8cdebce470
6 changed files with 88 additions and 35 deletions
|
|
@ -149,7 +149,7 @@ class RedactionTestCase(unittest.TestCase):
|
|||
event,
|
||||
)
|
||||
|
||||
self.assertFalse(hasattr(event, "redacted_because"))
|
||||
self.assertFalse("redacted_because" in event.unsigned)
|
||||
|
||||
# Redact event
|
||||
reason = "Because I said so"
|
||||
|
|
@ -179,7 +179,7 @@ class RedactionTestCase(unittest.TestCase):
|
|||
event,
|
||||
)
|
||||
|
||||
self.assertTrue(hasattr(event, "redacted_because"))
|
||||
self.assertTrue("redacted_because" in event.unsigned)
|
||||
|
||||
self.assertObjectHasAttributes(
|
||||
{
|
||||
|
|
@ -187,7 +187,7 @@ class RedactionTestCase(unittest.TestCase):
|
|||
"user_id": self.u_alice.to_string(),
|
||||
"content": {"reason": reason},
|
||||
},
|
||||
event.redacted_because,
|
||||
event.unsigned["redacted_because"],
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue