summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-03-17 07:37:04 -0400
committerGitHub <noreply@github.com>2020-03-17 07:37:04 -0400
commit60724c46b7dc5300243fd97d5a485564b3e00afe (patch)
treea22f3e764cdaafa76d6414dd772ec64d8d279afc /synapse/rest
parentRevert "Add options to disable setting profile info for prevent changes. (#70... (diff)
downloadsynapse-60724c46b7dc5300243fd97d5a485564b3e00afe.tar.xz
Remove special casing of `m.room.aliases` events (#7034)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/room.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 64f51406fb..bffd43de5f 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -189,12 +189,6 @@ class RoomStateEventRestServlet(TransactionRestServlet):
 
         content = parse_json_object_from_request(request)
 
-        if event_type == EventTypes.Aliases:
-            # MSC2260
-            raise SynapseError(
-                400, "Cannot send m.room.aliases events via /rooms/{room_id}/state"
-            )
-
         event_dict = {
             "type": event_type,
             "content": content,
@@ -242,12 +236,6 @@ class RoomSendEventRestServlet(TransactionRestServlet):
         requester = await self.auth.get_user_by_req(request, allow_guest=True)
         content = parse_json_object_from_request(request)
 
-        if event_type == EventTypes.Aliases:
-            # MSC2260
-            raise SynapseError(
-                400, "Cannot send m.room.aliases events via /rooms/{room_id}/send"
-            )
-
         event_dict = {
             "type": event_type,
             "content": content,