We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08d249 commit 368a169Copy full SHA for 368a169
app/src/main/java/org/thoughtcrime/securesms/database/RecipientSettingsDatabase.kt
@@ -212,14 +212,20 @@ class RecipientSettingsDatabase @Inject constructor(
212
arrayOf(address.toString())
213
)
214
if (rows > 0) {
215
- cache.remove(address)
216
deleted += rows
217
}
218
219
database.setTransactionSuccessful()
220
} finally {
221
database.endTransaction()
222
+
223
+ // Notify after db transaction
224
+ for (address in orphans) {
225
+ cache.remove(address)
226
+ mutableChangeNotification.tryEmit(address)
227
+ }
228
229
return deleted
230
231
0 commit comments