Chore: Remove Teams migration (#3857)

This commit is contained in:
Diego Mello 2022-03-08 10:15:03 -03:00 committed by GitHub
parent d19ce3b3e4
commit fe33a4a6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -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;