Only fetch profiles if we haven't fetched them in the last five minutes.

This commit is contained in:
andrew-signal
2025-05-29 11:00:15 -04:00
committed by GitHub
parent 38a9452de0
commit 4b41d7afaa
2 changed files with 28 additions and 4 deletions

View File

@@ -3662,6 +3662,11 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
db.update(TABLE_NAME, values, query.where, query.whereArgs)
}
}
// Invalidate recipient cache so that updated timestamps are reflected
ids.forEach { id ->
AppDependencies.databaseObserver.notifyRecipientChanged(id)
}
}
fun applyBlockedUpdate(blockedE164s: List<String>, blockedAcis: List<ACI>, blockedGroupIds: List<ByteArray?>) {