From fe33a4a6b0bc2f4b660a6bab14c71813c1c0f576 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 8 Mar 2022 10:15:03 -0300 Subject: [PATCH] Chore: Remove Teams migration (#3857) --- app/sagas/rooms.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/sagas/rooms.js b/app/sagas/rooms.js index 9102be9f..bc6fd21c 100644 --- a/app/sagas/rooms.js +++ b/app/sagas/rooms.js @@ -47,15 +47,6 @@ const handleRoomsRequest = function* handleRoomsRequest({ params }) { } } - // Force fetch all subscriptions to update columns related to Teams feature - // TODO: remove it a couple of releases - const teamsMigrationKey = `${server}_TEAMS_MIGRATION`; - const teamsMigration = yield UserPreferences.getBoolAsync(teamsMigrationKey); - if (!teamsMigration) { - roomsUpdatedAt = null; - UserPreferences.setBoolAsync(teamsMigrationKey, true); - } - const [subscriptionsResult, roomsResult] = yield RocketChat.getRooms(roomsUpdatedAt); const subscriptions = yield mergeSubscriptionsRooms(subscriptionsResult, roomsResult); const db = database.active;