From 752d2443412b728389ee2eee62f2149820cddb34 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Mon, 20 Jan 2025 11:29:56 -0600 Subject: [PATCH] matrix: Remove retention policy backfill code This has now been run in staging and production. --- packages/runtime-common/realm.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/packages/runtime-common/realm.ts b/packages/runtime-common/realm.ts index c95aea977a..6e349ae050 100644 --- a/packages/runtime-common/realm.ts +++ b/packages/runtime-common/realm.ts @@ -332,9 +332,6 @@ export class Realm { ), ]); - // TODO: remove after running in all environments; CS-7875 - this.backfillRetentionPolicies(); - let loader = new Loader(fetch, virtualNetwork.resolveImport); adapter.setLoader?.(loader); @@ -454,23 +451,6 @@ export class Realm { }); } - // TODO: remove after running in all environments; CS-7875 - private async backfillRetentionPolicies() { - try { - await this.#matrixClient.waitForLogin(); - - let roomIds = (await this.#matrixClient.getJoinedRooms()).joined_rooms; - for (let roomId of roomIds) { - await this.#matrixClient.setRoomRetentionPolicy( - roomId, - REALM_ROOM_RETENTION_POLICY_MAX_LIFETIME, - ); - } - } catch (e) { - console.error('backfillRetentionPolicies: error', e); - } - } - async indexing() { return this.#realmIndexUpdater.indexing(); }