Chore: Remove Teams migration (#3857)
This commit is contained in:
parent
d19ce3b3e4
commit
fe33a4a6b0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue