diff options
author | Erik Johnston <erik@matrix.org> | 2018-03-05 15:42:57 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-03-05 15:44:46 +0000 |
commit | d4ffe61d4fb71953bff0f94ff5d1603afe7d46f7 (patch) | |
tree | 47b4f37f1ace02351f4bc6dd35b3493f5d9f41b3 /synapse/handlers/sync.py | |
parent | Merge pull request #2934 from matrix-org/erikj/cache_fix (diff) | |
download | synapse-d4ffe61d4fb71953bff0f94ff5d1603afe7d46f7.tar.xz |
Remove ability for AS users to call /events and /sync
This functionality has been deprecated for a while as well as being broken for a while. Instead of fixing it lets just remove it entirely. See: https://github.com/matrix-org/matrix-doc/issues/1144
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index b12988f3c9..56b86356f2 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -998,8 +998,9 @@ class SyncHandler(object): app_service = self.store.get_app_service_by_user_id(user_id) if app_service: - rooms = yield self.store.get_app_service_rooms(app_service) - joined_room_ids = set(r.room_id for r in rooms) + # We no longer support AS users using /sync directly. + # See https://github.com/matrix-org/matrix-doc/issues/1144 + raise NotImplementedError() else: joined_room_ids = yield self.store.get_rooms_for_user(user_id) @@ -1030,8 +1031,9 @@ class SyncHandler(object): app_service = self.store.get_app_service_by_user_id(user_id) if app_service: - rooms = yield self.store.get_app_service_rooms(app_service) - joined_room_ids = set(r.room_id for r in rooms) + # We no longer support AS users using /sync directly. + # See https://github.com/matrix-org/matrix-doc/issues/1144 + raise NotImplementedError() else: joined_room_ids = yield self.store.get_rooms_for_user(user_id) |