actions: Remove realm argument to internal_send_stream_message.

The argument is redundant.
This commit is contained in:
Mateusz Mandera
2021-02-18 20:14:05 +01:00
committed by Tim Abbott
parent 09fc79f911
commit 51d7f24d20
6 changed files with 6 additions and 21 deletions

View File

@@ -202,7 +202,6 @@ class ZulipEmailForwardUserError(ZulipEmailForwardError):
def send_zulip(sender: UserProfile, stream: Stream, topic: str, content: str) -> None:
internal_send_stream_message(
stream.realm,
sender,
stream,
truncate_topic(topic),
@@ -431,7 +430,6 @@ def process_missed_message(to: str, message: EmailMessage) -> None:
if recipient.type == Recipient.STREAM:
stream = get_stream_by_id_in_realm(recipient.type_id, user_profile.realm)
internal_send_stream_message(
user_profile.realm,
user_profile,
stream,
topic,