Skip to content

Commit 59fd4f0

Browse files
rhttimabbott
authored andcommitted
Matrix bridge: Remove hardcoded matrix.org from username.
This allows people to mirror from self-hosted Matrix instances.
1 parent 76b8aac commit 59fd4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip/integrations/bridge_with_matrix/matrix_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _matrix_to_zulip(room: Any, event: Dict[str, Any]) -> None:
7777
"""
7878
content = get_message_content_from_event(event, no_noise)
7979

80-
zulip_bot_user = "@{}:matrix.org".format(matrix_config["username"])
80+
zulip_bot_user = matrix_config["username"]
8181
# We do this to identify the messages generated from Zulip -> Matrix
8282
# and we make sure we don't forward it again to the Zulip stream.
8383
not_from_zulip_bot = event["sender"] != zulip_bot_user

0 commit comments

Comments
 (0)