|
|
|
@ -69,6 +69,7 @@ import org.thoughtcrime.securesms.database.NoExternalStorageException;
|
|
|
|
|
import org.thoughtcrime.securesms.jobs.DirectoryRefreshJob;
|
|
|
|
|
import org.thoughtcrime.securesms.jobs.GcmRefreshJob;
|
|
|
|
|
import org.thoughtcrime.securesms.lock.RegistrationLockReminders;
|
|
|
|
|
import org.thoughtcrime.securesms.notifications.NotificationChannels;
|
|
|
|
|
import org.thoughtcrime.securesms.permissions.Permissions;
|
|
|
|
|
import org.thoughtcrime.securesms.push.AccountManagerFactory;
|
|
|
|
|
import org.thoughtcrime.securesms.service.DirectoryRefreshListener;
|
|
|
|
@ -378,6 +379,7 @@ public class RegistrationActivity extends BaseActionBarActivity implements Verif
|
|
|
|
|
database, backup.getFile(), passphrase);
|
|
|
|
|
|
|
|
|
|
DatabaseFactory.upgradeRestored(context, database);
|
|
|
|
|
NotificationChannels.restoreContactNotificationChannels(context);
|
|
|
|
|
|
|
|
|
|
TextSecurePreferences.setBackupEnabled(context, true);
|
|
|
|
|
TextSecurePreferences.setBackupPassphrase(context, passphrase);
|
|
|
|
|