realm_export: Add realm_export_consent feature to API.

Fixes part of #31201.
This commit is contained in:
Prakhar Pratyush
2024-10-10 18:08:44 +05:30
committed by Tim Abbott
parent 70b6e46516
commit eaee5763d6
8 changed files with 124 additions and 1 deletions

View File

@@ -1564,6 +1564,10 @@ def apply_event(
# These realm export events are only available to
# administrators, and aren't included in page_params.
pass
elif event["type"] == "realm_export_consent":
# These 'realm_export_consent' events are only available to
# administrators, and aren't included in page_params.
pass
elif event["type"] == "alert_words":
state["alert_words"] = event["alert_words"]
elif event["type"] == "muted_topics":