diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-02-19 13:20:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 13:20:34 -0500 |
commit | fc8b3d88097d2c985e8eae9779cdb4b23e1a8ef6 (patch) | |
tree | f92ea6fbe63e71f2fc4e01abbb814f129be333b0 /synapse/handlers/initial_sync.py | |
parent | Regenerate exact thumbnails if missing (#9438) (diff) | |
download | synapse-fc8b3d88097d2c985e8eae9779cdb4b23e1a8ef6.tar.xz |
Ratelimit cross-user key sharing requests. (#8957)
Diffstat (limited to 'synapse/handlers/initial_sync.py')
-rw-r--r-- | synapse/handlers/initial_sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/initial_sync.py b/synapse/handlers/initial_sync.py index 78c3e5a10b..71a5076672 100644 --- a/synapse/handlers/initial_sync.py +++ b/synapse/handlers/initial_sync.py @@ -18,7 +18,7 @@ from typing import TYPE_CHECKING, Optional, Tuple from twisted.internet import defer -from synapse.api.constants import EventTypes, Membership +from synapse.api.constants import EduTypes, EventTypes, Membership from synapse.api.errors import SynapseError from synapse.events.validator import EventValidator from synapse.handlers.presence import format_user_presence_state @@ -412,7 +412,7 @@ class InitialSyncHandler(BaseHandler): return [ { - "type": EventTypes.Presence, + "type": EduTypes.Presence, "content": format_user_presence_state(s, time_now), } for s in states |