Add identity changed notification even in blocking mode

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-09-13 17:10:27 -07:00
parent 848a25664b
commit 666cdb39a4

View File

@ -24,6 +24,7 @@ import org.thoughtcrime.securesms.database.PushDatabase;
import org.thoughtcrime.securesms.database.SmsDatabase; import org.thoughtcrime.securesms.database.SmsDatabase;
import org.thoughtcrime.securesms.database.documents.IdentityKeyMismatch; import org.thoughtcrime.securesms.database.documents.IdentityKeyMismatch;
import org.thoughtcrime.securesms.database.model.MessageRecord; import org.thoughtcrime.securesms.database.model.MessageRecord;
import org.thoughtcrime.securesms.jobs.IdentityUpdateJob;
import org.thoughtcrime.securesms.jobs.PushDecryptJob; import org.thoughtcrime.securesms.jobs.PushDecryptJob;
import org.thoughtcrime.securesms.recipients.Recipient; import org.thoughtcrime.securesms.recipients.Recipient;
import org.thoughtcrime.securesms.recipients.RecipientFactory; import org.thoughtcrime.securesms.recipients.RecipientFactory;
@ -101,6 +102,10 @@ public class ConfirmIdentityDialog extends AlertDialog {
processMessageRecord(messageRecord); processMessageRecord(messageRecord);
processPendingMessageRecords(messageRecord.getThreadId(), mismatch); processPendingMessageRecords(messageRecord.getThreadId(), mismatch);
ApplicationContext.getInstance(getContext())
.getJobManager()
.add(new IdentityUpdateJob(getContext(), mismatch.getRecipientId()));
return null; return null;
} }