mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
This commit also contains the following auxiliary changes: * Adds a custom exception, StreamWithIDDoesNotExist for when a stream with a given ID does not exist because the error message returned by StreamDoesNotExist only makes with stream names, not IDs. * Adds a new helper, get_stream_by_id_in_realm, which is similar to get_user_profile_by_id_in_realm (introduced in #10391). * Adds a helper, validate_stream_id_with_pm_notification, which returns the Stream object associated with a given ID and also handles PM notifications to the bot owner if the message was sent by a bot and if the stream does not exist or has no subscribers. * Modifies the message sent by send_pm_if_empty_stream to accommodate stream IDs. Note that all of the above changes are required before check_message can be modified to support stream IDs.
6.3 KiB
6.3 KiB