Support for GV1 -> GV2 migration

This commit is contained in:
Scott Nonnenberg 2020-11-20 09:30:45 -08:00 committed by Josh Perez
parent a0baa3e03f
commit 2c69f2c367
32 changed files with 2626 additions and 341 deletions

View file

@ -369,6 +369,9 @@ Whisper.ConversationView = Whisper.View.extend({
this.model.fetchLatestGroupV2Data.bind(this.model),
FIVE_MINUTES
);
this.model.throttledMaybeMigrateV1Group =
this.model.throttledMaybeMigrateV1Group ||
_.throttle(this.model.maybeMigrateV1Group.bind(this.model), FIVE_MINUTES);
this.debouncedMaybeGrabLinkPreview = _.debounce(
this.maybeGrabLinkPreview.bind(this),
@ -2035,6 +2038,7 @@ Whisper.ConversationView = Whisper.View.extend({
}
this.model.throttledFetchLatestGroupV2Data();
this.model.throttledMaybeMigrateV1Group();
const statusPromise = this.model.throttledGetProfiles();
// eslint-disable-next-line more/no-then