mirror of https://github.com/zulip/zulip.git
zilencer: Fix incorrect registration_deactivated mentions in realm sync.
We no longer modify this flag upon encountering a locally deleted realm,
as of 880133295e
This commit is contained in:
parent
72132502b9
commit
cb2d35cf27
|
@ -831,7 +831,7 @@ def update_remote_realm_data_for_server(
|
||||||
# (for the attributes that make sense to sync like this).
|
# (for the attributes that make sense to sync like this).
|
||||||
for remote_realm in already_registered_remote_realms:
|
for remote_realm in already_registered_remote_realms:
|
||||||
# TODO: We'll also want to check if .realm_locally_deleted is True, and if so,
|
# TODO: We'll also want to check if .realm_locally_deleted is True, and if so,
|
||||||
# toggle it off (and potentially restore registration_deactivated=True too),
|
# toggle it off,
|
||||||
# since the server is now sending us data for this realm again.
|
# since the server is now sending us data for this realm again.
|
||||||
|
|
||||||
modified = False
|
modified = False
|
||||||
|
@ -909,7 +909,7 @@ def update_remote_realm_data_for_server(
|
||||||
|
|
||||||
RemoteRealm.objects.bulk_update(
|
RemoteRealm.objects.bulk_update(
|
||||||
remote_realms_to_update,
|
remote_realms_to_update,
|
||||||
["realm_locally_deleted", "registration_deactivated"],
|
["realm_locally_deleted"],
|
||||||
)
|
)
|
||||||
RemoteRealmAuditLog.objects.bulk_create(remote_realm_audit_logs)
|
RemoteRealmAuditLog.objects.bulk_create(remote_realm_audit_logs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue