summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/api/auth.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 26d6007a04..5f7e9163c6 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -333,8 +333,6 @@ class Auth:
         user_id = request.args[b"user_id"][0].decode("utf8")
         await self.validate_appservice_can_control_user_id(app_service, user_id)
 
-        if app_service.sender == user_id:
-            return app_service.sender, None, app_service
 
         return user_id, None, app_service