From ecd60b87238bdaf534672bdbab5e626bfc3c5b92 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 22 Jul 2019 16:46:03 +1000 Subject: [PATCH] Clean --- src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java index 12e3cfdc6a..6b5a5f9828 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java @@ -473,11 +473,12 @@ public class PushDecryptJob extends BaseJob implements InjectableType { LokiThreadDatabase lokiThreadDatabase = DatabaseFactory.getLokiThreadDatabase(context); // sessionStore.deleteAllSessions(content.getSender()); + Log.d("Loki", "Received a session reset request from: " + content.getSender() + "; archiving the session."); + sessionStore.archiveAllSessions(content.getSender()); lokiThreadDatabase.setSessionResetStatus(threadId, LokiThreadSessionResetStatus.REQUEST_RECEIVED); - Log.d("Loki", "Received a session reset request from: " + content.getSender() + "."); - + Log.d("Loki", "Sending a ping back to " + content.getSender() + "."); String contactID = DatabaseFactory.getThreadDatabase(context).getRecipientForThreadId(threadId).getAddress().toString(); SignalServiceMessageSender messageSender = ApplicationContext.getInstance(context).communicationModule.provideSignalMessageSender(); SignalServiceAddress address = new SignalServiceAddress(contactID);