mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
Fix for bug where messages are stuck in pending state after upgrade.
This commit is contained in:
parent
dec7fd4c8a
commit
7987362c25
1 changed files with 7 additions and 0 deletions
|
@ -27,7 +27,9 @@ import android.util.Log;
|
|||
import android.view.View;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import org.thoughtcrime.securesms.crypto.DecryptingQueue;
|
||||
import org.thoughtcrime.securesms.crypto.IdentityKeyUtil;
|
||||
import org.thoughtcrime.securesms.notifications.MessageNotifier;
|
||||
import org.whispersystems.textsecure.crypto.MasterSecret;
|
||||
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
||||
import org.thoughtcrime.securesms.util.VersionTracker;
|
||||
|
@ -66,6 +68,8 @@ public class DatabaseUpgradeActivity extends Activity {
|
|||
.execute(VersionTracker.getLastSeenVersion(this));
|
||||
} else {
|
||||
VersionTracker.updateLastSeenVersion(this);
|
||||
DecryptingQueue.schedulePendingDecrypts(DatabaseUpgradeActivity.this, masterSecret);
|
||||
MessageNotifier.updateNotification(DatabaseUpgradeActivity.this, masterSecret);
|
||||
startActivity((Intent)getIntent().getParcelableExtra("next_intent"));
|
||||
finish();
|
||||
}
|
||||
|
@ -149,6 +153,9 @@ public class DatabaseUpgradeActivity extends Activity {
|
|||
@Override
|
||||
protected void onPostExecute(Void result) {
|
||||
VersionTracker.updateLastSeenVersion(DatabaseUpgradeActivity.this);
|
||||
DecryptingQueue.schedulePendingDecrypts(DatabaseUpgradeActivity.this, masterSecret);
|
||||
MessageNotifier.updateNotification(DatabaseUpgradeActivity.this, masterSecret);
|
||||
|
||||
startActivity((Intent)getIntent().getParcelableExtra("next_intent"));
|
||||
finish();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue