From 9ee8461b9d2c0b5fe4cd33e2e238002ee62d67fa Mon Sep 17 00:00:00 2001 From: rht Date: Fri, 3 Apr 2020 00:08:15 -0400 Subject: [PATCH] bridges: Remove sender field from message data. For the reason why, see https://chat.zulip.org/#narrow/stream/127-integrations/topic/bridge.20between.20zulips --- zulip/integrations/bridge_between_zulips/run-interrealm-bridge | 1 - zulip/integrations/bridge_with_matrix/matrix_bridge.py | 1 - 2 files changed, 2 deletions(-) diff --git a/zulip/integrations/bridge_between_zulips/run-interrealm-bridge b/zulip/integrations/bridge_between_zulips/run-interrealm-bridge index 483c1d3..367e47d 100755 --- a/zulip/integrations/bridge_between_zulips/run-interrealm-bridge +++ b/zulip/integrations/bridge_between_zulips/run-interrealm-bridge @@ -39,7 +39,6 @@ def create_pipe_event(to_client: zulip.Client, from_bot: Dict[str, Any], # formatting purpose msg["content"] = "\n" + msg["content"] msg_data = { - "sender": to_client.email, "type": "stream", "to": to_bot["stream"], "subject": subject, diff --git a/zulip/integrations/bridge_with_matrix/matrix_bridge.py b/zulip/integrations/bridge_with_matrix/matrix_bridge.py index 92dca5f..bb0ba77 100644 --- a/zulip/integrations/bridge_with_matrix/matrix_bridge.py +++ b/zulip/integrations/bridge_with_matrix/matrix_bridge.py @@ -81,7 +81,6 @@ def matrix_to_zulip(zulip_client, zulip_config, matrix_config, no_noise): if not_from_zulip_bot and content: try: result = zulip_client.send_message({ - "sender": zulip_client.email, "type": "stream", "to": zulip_config["stream"], "subject": zulip_config["topic"],