mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
streams: Fix events send when archiving and unarchiving streams.
This commit is contained in:
@@ -529,6 +529,7 @@ def check_stream_update(
|
||||
"name",
|
||||
"stream_id",
|
||||
"first_message_id",
|
||||
"is_archived",
|
||||
}
|
||||
|
||||
if prop == "description":
|
||||
@@ -565,6 +566,9 @@ def check_stream_update(
|
||||
elif prop == "is_announcement_only":
|
||||
assert extra_keys == set()
|
||||
assert isinstance(value, bool)
|
||||
elif prop == "is_archived":
|
||||
assert extra_keys == set()
|
||||
assert isinstance(value, bool)
|
||||
else:
|
||||
raise AssertionError(f"Unknown property: {prop}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user