mirror of
				https://github.com/oxen-io/session-android.git
				synced 2025-11-03 16:26:26 +00:00 
			
		
		
		
	Enhanced import/export support.
1) Allow imports from the stock SMS database at any time. 2) Provide plaintext export support, in a format compatible with the "SMS Backup And Restore" app. 3) Fix the DB weirdness on encrypted restore that previously required killing the app.
This commit is contained in:
		@@ -191,8 +191,8 @@ public class SmsMigrator {
 | 
			
		||||
                                     MasterSecret masterSecret,
 | 
			
		||||
                                     SmsMigrationProgressListener listener)
 | 
			
		||||
  {
 | 
			
		||||
    if (context.getSharedPreferences("SecureSMS", Context.MODE_PRIVATE).getBoolean("migrated", false))
 | 
			
		||||
      return;
 | 
			
		||||
//    if (context.getSharedPreferences("SecureSMS", Context.MODE_PRIVATE).getBoolean("migrated", false))
 | 
			
		||||
//      return;
 | 
			
		||||
 | 
			
		||||
    ThreadDatabase threadDatabase = DatabaseFactory.getThreadDatabase(context);
 | 
			
		||||
    Cursor cursor                 = null;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user