bridges: Remove sender field from message data.
For the reason why, see https://chat.zulip.org/#narrow/stream/127-integrations/topic/bridge.20between.20zulips
This commit is contained in:
parent
46c78ce7b5
commit
9ee8461b9d
|
@ -39,7 +39,6 @@ def create_pipe_event(to_client: zulip.Client, from_bot: Dict[str, Any],
|
||||||
# formatting purpose
|
# formatting purpose
|
||||||
msg["content"] = "\n" + msg["content"]
|
msg["content"] = "\n" + msg["content"]
|
||||||
msg_data = {
|
msg_data = {
|
||||||
"sender": to_client.email,
|
|
||||||
"type": "stream",
|
"type": "stream",
|
||||||
"to": to_bot["stream"],
|
"to": to_bot["stream"],
|
||||||
"subject": subject,
|
"subject": subject,
|
||||||
|
|
|
@ -81,7 +81,6 @@ def matrix_to_zulip(zulip_client, zulip_config, matrix_config, no_noise):
|
||||||
if not_from_zulip_bot and content:
|
if not_from_zulip_bot and content:
|
||||||
try:
|
try:
|
||||||
result = zulip_client.send_message({
|
result = zulip_client.send_message({
|
||||||
"sender": zulip_client.email,
|
|
||||||
"type": "stream",
|
"type": "stream",
|
||||||
"to": zulip_config["stream"],
|
"to": zulip_config["stream"],
|
||||||
"subject": zulip_config["topic"],
|
"subject": zulip_config["topic"],
|
||||||
|
|
Loading…
Reference in a new issue