mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
messages: Optimize check_message using recent denormalization.
This commit is contained in:
committed by
Tim Abbott
parent
1c5461663f
commit
792fbeea24
@@ -2356,7 +2356,7 @@ def check_message(sender: UserProfile, client: Client, addressee: Addressee,
|
||||
stream = addressee.stream()
|
||||
assert stream is not None
|
||||
|
||||
recipient = get_stream_recipient(stream.id)
|
||||
recipient = stream.recipient
|
||||
|
||||
# This will raise JsonableError if there are problems.
|
||||
validate_sender_can_write_to_stream(
|
||||
|
||||
Reference in New Issue
Block a user