Ensure new storage id is synchronized to recipient.

fork-5.53.8
Alex Hart 2022-05-04 11:08:40 -03:00
rodzic ee69895123
commit 1345413645
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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.")