diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-01-18 11:38:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 11:38:57 -0500 |
commit | 68acb0a29dcb03a0ecbcebdb95e09c5999598f42 (patch) | |
tree | a14144b467bf09b1a60a608a511f2065ac1d16a0 /tests/rest/client/test_relations.py | |
parent | Remove `log_function` and its uses (#11761) (diff) | |
download | synapse-68acb0a29dcb03a0ecbcebdb95e09c5999598f42.tar.xz |
Include whether the requesting user has participated in a thread. (#11577)
Per updates to MSC3440. This is implement as a separate method since it needs to be cached on a per-user basis, instead of a per-thread basis.
Diffstat (limited to 'tests/rest/client/test_relations.py')
-rw-r--r-- | tests/rest/client/test_relations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/rest/client/test_relations.py b/tests/rest/client/test_relations.py index ee26751430..4b20ab0e3e 100644 --- a/tests/rest/client/test_relations.py +++ b/tests/rest/client/test_relations.py @@ -515,6 +515,9 @@ class RelationsTestCase(unittest.HomeserverTestCase): 2, actual[RelationTypes.THREAD].get("count"), ) + self.assertTrue( + actual[RelationTypes.THREAD].get("current_user_participated") + ) # The latest thread event has some fields that don't matter. self.assert_dict( { |