mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:34:48 -04:00
Additional constants for EDU types. (#12884)
Instead of hard-coding strings in many places.
This commit is contained in:
parent
d9f092285b
commit
c52abc1cfd
35 changed files with 146 additions and 96 deletions
|
@ -399,7 +399,7 @@ class ModuleApiTestCase(HomeserverTestCase):
|
|||
|
||||
for edu in edus:
|
||||
# Make sure we're only checking presence-type EDUs
|
||||
if edu["edu_type"] != EduTypes.Presence:
|
||||
if edu["edu_type"] != EduTypes.PRESENCE:
|
||||
continue
|
||||
|
||||
# EDUs can contain multiple presence updates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue