mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Fix crash in legacy migration.
This commit is contained in:
@@ -32,7 +32,10 @@ internal class UpdateSmsJobsMigrationJob(
|
||||
|
||||
override fun performMigration() {
|
||||
val idOffset = SignalStore.plaintext.smsMigrationIdOffset
|
||||
check(idOffset >= 0) { "Invalid ID offset of $idOffset -- this shouldn't be possible!" }
|
||||
if (idOffset < 0) {
|
||||
Log.w(TAG, "Invalid ID offset of $idOffset -- this shouldn't be possible!")
|
||||
return
|
||||
}
|
||||
|
||||
AppDependencies.jobManager.update { jobSpec ->
|
||||
when (jobSpec.factoryKey) {
|
||||
|
||||
Reference in New Issue
Block a user