Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
streams: Add isinstance check for merge_streams.
Zixuan James Lif314171a7ba4
diff --git a/zerver/actions/streams.py b/zerver/actions/streams.pyindex deaf602b1ee..c4d632ea9d8 100644--- a/zerver/actions/streams.py+++ b/zerver/actions/streams.py@@ -162,6 +162,8 @@ def merge_streams() -> Tuple[int, int, int]:recipient_to_destroy = stream_to_destroy.recipientrecipient_to_keep = stream_to_keep.recipient+ assert recipient_to_keep is not None+ assert recipient_to_destroy is not Noneif recipient_to_destroy.id == recipient_to_keep.id:return (0, 0, 0)