Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit da3bd2c

Browse files
committed
Handle fr.gouv.rie + startswith typo
1 parent ef8e11b commit da3bd2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

synapse/rest/client/v1/pusher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ async def on_POST(self, request):
110110

111111
# rewrite push url from m.org sygnal to Tchap sygnal
112112
good_sygnal_url = None
113-
if content["app_id"].start_with("fr.gouv.btchap"):
113+
if content["app_id"].startswith("fr.gouv.btchap") or content["app_id"].startswith("fr.gouv.rie.tchap"):
114114
good_sygnal_url = "https://sygnal.preprod.tchap.gouv.fr"
115-
if content["app_id"].start_with("fr.gouv.tchap"):
115+
elif content["app_id"].startswith("fr.gouv.tchap"):
116116
good_sygnal_url = "https://sygnal.tchap.gouv.fr"
117117

118118
if good_sygnal_url:

0 commit comments

Comments
 (0)