From b7b64a7c903181d25f38c2d5e7bd04e09f3ee5c8 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 6 Jun 2019 11:35:14 +0200 Subject: [PATCH] Disable friend migration while testing on alpha --- www/common/migrate-user-object.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/common/migrate-user-object.js b/www/common/migrate-user-object.js index 385570d1c..012d09932 100644 --- a/www/common/migrate-user-object.js +++ b/www/common/migrate-user-object.js @@ -1,4 +1,5 @@ define([ + '/customize/application_config.js', '/common/common-feedback.js', '/common/common-hash.js', '/common/common-util.js', @@ -6,7 +7,7 @@ define([ '/common/outer/mailbox.js', '/bower_components/nthen/index.js', '/bower_components/chainpad-crypto/crypto.js', -], function (Feedback, Hash, Util, Messenger, Mailbox, nThen, Crypto) { +], function (AppConfig, Feedback, Hash, Util, Messenger, Mailbox, nThen, Crypto) { // Start migration check // Versions: // 1: migrate pad attributes @@ -190,6 +191,9 @@ define([ userObject.version = version = 8; } }).nThen(function () { + if (!AppConfig.migrateFriends) { return; } // XXX + + // Migration 9: send our mailbox channel to existing friends var migrateFriends = function () { var network = store.network;