Skip to content

Commit

Permalink
Ensure we rotate storage id when applying hidden story state or usern…
Browse files Browse the repository at this point in the history
…ame.
  • Loading branch information
alex-signal committed Dec 8, 2022
1 parent 4c5db98 commit 380b377
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2061,13 +2061,15 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da

if (update(id, contentValuesOf(USERNAME to username))) {
ApplicationDependencies.getDatabaseObserver().notifyRecipientChanged(id)
rotateStorageId(id)
StorageSyncHelper.scheduleSyncForDataChange()
}
}
}

fun setHideStory(id: RecipientId, hideStory: Boolean) {
updateExtras(id) { it.setHideStory(hideStory) }
rotateStorageId(id)
StorageSyncHelper.scheduleSyncForDataChange()
}

Expand Down

0 comments on commit 380b377

Please sign in to comment.