mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 14:54:56 -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
|
@ -274,7 +274,7 @@ class InitialSyncHandler:
|
|||
"rooms": rooms_ret,
|
||||
"presence": [
|
||||
{
|
||||
"type": "m.presence",
|
||||
"type": EduTypes.PRESENCE,
|
||||
"content": format_user_presence_state(event, now),
|
||||
}
|
||||
for event in presence
|
||||
|
@ -439,7 +439,7 @@ class InitialSyncHandler:
|
|||
|
||||
return [
|
||||
{
|
||||
"type": EduTypes.Presence,
|
||||
"type": EduTypes.PRESENCE,
|
||||
"content": format_user_presence_state(s, time_now),
|
||||
}
|
||||
for s in states
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue