Exclude application services

See https://github.com/element-hq/synapse/pull/17167#discussion_r1595924522
This commit is contained in:
Eric Eastwood 2024-05-20 11:58:22 -05:00
parent 3539abe0aa
commit 5f194f9b3d

View file

@ -1847,9 +1847,11 @@ class SyncHandler:
""" """
user_id = sync_config.user.to_string() user_id = sync_config.user.to_string()
# TODO: Should we exclude app services here? There could be an argument to allow app_service = self.store.get_app_service_by_user_id(user_id)
# them since the appservice doesn't have to make a massive initial sync. if app_service:
# (related to https://github.com/matrix-org/matrix-doc/issues/1144) # We no longer support AS users using /sync directly.
# See https://github.com/matrix-org/matrix-doc/issues/1144
raise NotImplementedError()
sync_result_builder = await self.get_sync_result_builder( sync_result_builder = await self.get_sync_result_builder(
sync_config, sync_config,