Ensure we rotate storage id when applying hidden story state or username.

This commit is contained in:
Alex Hart 2022-12-08 10:03:34 -04:00
parent 4c5db983e3
commit 380b377ed8

View file

@ -2061,6 +2061,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
if (update(id, contentValuesOf(USERNAME to username))) {
ApplicationDependencies.getDatabaseObserver().notifyRecipientChanged(id)
rotateStorageId(id)
StorageSyncHelper.scheduleSyncForDataChange()
}
}
@ -2068,6 +2069,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
fun setHideStory(id: RecipientId, hideStory: Boolean) {
updateExtras(id) { it.setHideStory(hideStory) }
rotateStorageId(id)
StorageSyncHelper.scheduleSyncForDataChange()
}