Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Jan 16, 2025
1 parent b963c6c commit c345346
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/runtime-common/realm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,26 +455,14 @@ export class Realm {

// TODO: remove after running in all environments; CS-7875
private async backfillRetentionPolicies() {
console.log('backfillRetentionPolicies: waiting for login');
await this.#matrixClient.waitForLogin();
console.log('backfillRetentionPolicies: login complete');

let roomIds = (await this.#matrixClient.getJoinedRooms()).joined_rooms;
for (let roomId of roomIds) {
console.log(
`backfillRetentionPolicies: setting retention policy for ${roomId}, user ${
this.#matrixClient.username
}`,
);
await this.#matrixClient.setRoomRetentionPolicy(
roomId,
REALM_ROOM_RETENTION_POLICY_MAX_LIFETIME,
);
console.log(
`backfillRetentionPolicies: set retention policy for ${roomId}, user ${
this.#matrixClient.username
}`,
);
}
}

Expand Down

0 comments on commit c345346

Please sign in to comment.