Improving handling of profile key updates for ourselves.

This commit is contained in:
Greyson Parrelli
2022-02-17 10:56:00 -05:00
parent 6f788ee3df
commit ecc6a7b95e
2 changed files with 8 additions and 2 deletions

View File

@@ -933,7 +933,7 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
}
}
val updateCount = writableDatabase.update(TABLE_NAME, values, STORAGE_SERVICE_ID + " = ?", arrayOf(Base64.encodeBytes(update.old.id.raw)))
val updateCount = writableDatabase.update(TABLE_NAME, values, "$STORAGE_SERVICE_ID = ?", arrayOf(Base64.encodeBytes(update.old.id.raw)))
if (updateCount < 1) {
throw AssertionError("Account update didn't match any rows!")
}