Commit 764d07e7 authored by Bastien Le Querrec's avatar Bastien Le Querrec

update thread cache when receiving a new identity

parent 53779253
Pipeline #197 passed with stages
in 7 minutes and 42 seconds
......@@ -40,7 +40,7 @@ public abstract class Database {
notifyConversationListeners(threadId);
}
protected void notifyConversationListeners(long threadId) {
public void notifyConversationListeners(long threadId) {
context.getContentResolver().notifyChange(DatabaseContentProviders.Conversation.getUriForThread(threadId), null);
}
......
......@@ -203,7 +203,8 @@ public class SmsDecryptJob extends MasterSecretJob {
Recipients recipients = RecipientFactory.getRecipientsFromString(context, message.getSender(), false);
long recipientId = recipients.getPrimaryRecipient().getRecipientId();
database.addMismatchedIdentity(messageId, recipientId, e.getUntrustedIdentity());
database.notifyConversationListeners(threadId);
database.setMismatchedIdentity(messageId, recipientId, e.getUntrustedIdentity());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment