Matrix bridge: Remove hardcoded matrix.org from username.

This allows people to mirror from self-hosted Matrix instances.
This commit is contained in:
rht 2021-11-02 07:09:14 -04:00 committed by Tim Abbott
parent 76b8aacf5c
commit 59fd4f070a

View file

@ -77,7 +77,7 @@ def matrix_to_zulip(
""" """
content = get_message_content_from_event(event, no_noise) 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 # 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. # and we make sure we don't forward it again to the Zulip stream.
not_from_zulip_bot = event["sender"] != zulip_bot_user not_from_zulip_bot = event["sender"] != zulip_bot_user