mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 16:17:32 +00:00
Don't notify new users if there is a pending SQLCipher migration.
If a user is upgrading to use the SQLCipher database (which happened back in 4.16, so this only applies to relatively dormant users who are just getting back into the app) and received a new "user X joind signal" message, then it could screw up the migration. So we're just dropping these notifications that happen in this narrow window.
This commit is contained in:
@@ -142,7 +142,7 @@ public class DirectoryHelper {
|
||||
ApplicationContext.getInstance(context).getJobManager().add(new MultiDeviceContactUpdateJob(context));
|
||||
}
|
||||
|
||||
if (!activeUser && systemContact) {
|
||||
if (!activeUser && systemContact && !TextSecurePreferences.getNeedsSqlCipherMigration(context)) {
|
||||
notifyNewUsers(context, Collections.singletonList(recipient.getAddress()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user