mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 03:54:11 -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
|
@ -113,7 +113,7 @@ class EventStreamHandler:
|
|||
states = await presence_handler.get_states(users)
|
||||
to_add.extend(
|
||||
{
|
||||
"type": EduTypes.Presence,
|
||||
"type": EduTypes.PRESENCE,
|
||||
"content": format_user_presence_state(state, time_now),
|
||||
}
|
||||
for state in states
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue