summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2023-06-14 11:53:55 +0200
committerGitHub <noreply@github.com>2023-06-14 11:53:55 +0200
commit14f9d9b4520099118f009ae4f4c6b11b779af499 (patch)
treee9b2ea6917463a39da844777ed14ef2b95471d8d
parentFix changelog typo (diff)
downloadsynapse-14f9d9b4520099118f009ae4f4c6b11b779af499.tar.xz
Fix empty scope when having version mismatch between workers (#15774)
-rw-r--r--changelog.d/15774.bugfix1
-rw-r--r--synapse/types/__init__.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/15774.bugfix b/changelog.d/15774.bugfix
new file mode 100644
index 0000000000..c24d6c25e4
--- /dev/null
+++ b/changelog.d/15774.bugfix
@@ -0,0 +1 @@
+Fix an error when having workers of different versions running.
diff --git a/synapse/types/__init__.py b/synapse/types/__init__.py
index dfc95e8ebb..095be070e0 100644
--- a/synapse/types/__init__.py
+++ b/synapse/types/__init__.py
@@ -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,