Ensure we rotate storage id when applying hidden story state or username.
This commit is contained in:
parent
4c5db983e3
commit
380b377ed8
1 changed files with 2 additions and 0 deletions
|
@ -2061,6 +2061,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||||
|
|
||||||
if (update(id, contentValuesOf(USERNAME to username))) {
|
if (update(id, contentValuesOf(USERNAME to username))) {
|
||||||
ApplicationDependencies.getDatabaseObserver().notifyRecipientChanged(id)
|
ApplicationDependencies.getDatabaseObserver().notifyRecipientChanged(id)
|
||||||
|
rotateStorageId(id)
|
||||||
StorageSyncHelper.scheduleSyncForDataChange()
|
StorageSyncHelper.scheduleSyncForDataChange()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2068,6 +2069,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||||
|
|
||||||
fun setHideStory(id: RecipientId, hideStory: Boolean) {
|
fun setHideStory(id: RecipientId, hideStory: Boolean) {
|
||||||
updateExtras(id) { it.setHideStory(hideStory) }
|
updateExtras(id) { it.setHideStory(hideStory) }
|
||||||
|
rotateStorageId(id)
|
||||||
StorageSyncHelper.scheduleSyncForDataChange()
|
StorageSyncHelper.scheduleSyncForDataChange()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue