mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
`zulip_update_announcements_stream` should be set to None when its channel is deactivated. This commit adds a safeguard to explicitly raise an error if it is found in a deactivated state, indicating a potential bug that needs investigation. Without this commit, we won't face any runtime error but the error raised would be at a much later stage i.e. while sending message, with a generic error message i.e. "Not authorized to send to channel " which would require further investigation to determine the root cause. This commit helps with an early return and better error message to debug.
23 KiB
23 KiB