From 59fd4f070a5116724eb82da08d239aed79387205 Mon Sep 17 00:00:00 2001 From: rht Date: Tue, 2 Nov 2021 07:09:14 -0400 Subject: [PATCH] Matrix bridge: Remove hardcoded matrix.org from username. This allows people to mirror from self-hosted Matrix instances. --- zulip/integrations/bridge_with_matrix/matrix_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip/integrations/bridge_with_matrix/matrix_bridge.py b/zulip/integrations/bridge_with_matrix/matrix_bridge.py index 7f70700..77e532c 100644 --- a/zulip/integrations/bridge_with_matrix/matrix_bridge.py +++ b/zulip/integrations/bridge_with_matrix/matrix_bridge.py @@ -77,7 +77,7 @@ def matrix_to_zulip( """ content = get_message_content_from_event(event, no_noise) - zulip_bot_user = "@{}:matrix.org".format(matrix_config["username"]) + zulip_bot_user = matrix_config["username"] # We do this to identify the messages generated from Zulip -> Matrix # and we make sure we don't forward it again to the Zulip stream. not_from_zulip_bot = event["sender"] != zulip_bot_user