Fix empty scope when having version mismatch between workers (#15774)

1.103.0-whithout-watcha
Mathieu Velten 1 year ago committed by GitHub
parent 629115836f
commit 14f9d9b452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/15774.bugfix
  2. 2
      synapse/types/__init__.py

@ -0,0 +1 @@
Fix an error when having workers of different versions running.

@ -177,7 +177,7 @@ class Requester:
user=UserID.from_string(input["user_id"]),
access_token_id=input["access_token_id"],
is_guest=input["is_guest"],
scope=set(input["scope"]),
scope=set(input.get("scope", [])),
shadow_banned=input["shadow_banned"],
device_id=input["device_id"],
app_service=appservice,

Loading…
Cancel
Save