mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
We remove bot's subscriptions for private streams to which the new owner is not subscribed and keep the ones to which the new owner is subscribed on changing owner. This commit also changes the code for sending subscription remove events to use transaction.on_commit since we call the function inside a transactopn in do_change_bot_owner and this also requires some changes in tests in test_events.
17 KiB
17 KiB