mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-08 09:18:39 +01:00
Ensure we rotate storage id when applying hidden story state or username.
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user