streams: Fix events send when archiving and unarchiving streams.

This commit is contained in:
Sahil Batra
2025-03-31 12:31:30 +05:30
committed by Tim Abbott
parent ae579aa25a
commit 7c470f0161
9 changed files with 317 additions and 112 deletions

View File

@@ -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}")