def notify_realm_custom_profile_fields(realm: Realm, operation: str) -> None:
    fields = custom_profile_fields_for_realm(realm.id)
    event = dict(type='custom_profile_fields', op=operation, fields=[f.as_dict() for f in fields])
    send_event(realm, event, active_user_ids(realm.id))
def notify_realm_custom_profile_fields(realm: Realm, operation: str) -> None:
    fields = custom_profile_fields_for_realm(realm.id)
    event = dict(type='custom_profile_fields', op=operation, fields=[f.as_dict() for f in fields])
    send_event(realm, event, active_user_ids(realm.id))