Ensure new storage id is synchronized to recipient.

This commit is contained in:
Alex Hart
2022-05-04 11:08:40 -03:00
parent ee69895123
commit 1345413645

View File

@@ -444,6 +444,9 @@ class DistributionListDatabase constructor(context: Context?, databaseHelper: Si
return
}
val recipientId = getRecipientId(distributionListId)!!
SignalDatabase.recipients.updateStorageId(recipientId, update.new.id.raw)
if (update.new.deletedAtTimestamp > 0L) {
if (distributionId.asUuid().equals(DistributionId.MY_STORY.asUuid())) {
Log.w(TAG, "Refusing to delete My Story.")