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.
fork-5.53.8
Greyson Parrelli 2018-06-02 09:38:20 -04:00
rodzic a6b6775aa1
commit df2c5d38b0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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()));
}