Merge "Fix interaction tracking logic" into rvc-dev am: d94f939535 am: 03fc35481f am: 71b19a5ba3
Change-Id: If9c955f521c06c562d1a027e21e7b67018204a03
This commit is contained in:
@@ -22,7 +22,9 @@ class NotificationInteractionTracker @Inject constructor(
|
||||
entryManager.addCollectionListener(this)
|
||||
}
|
||||
|
||||
fun hasUserInteractedWith(key: String): Boolean = key in interactions
|
||||
fun hasUserInteractedWith(key: String): Boolean {
|
||||
return interactions[key] ?: false
|
||||
}
|
||||
|
||||
override fun onEntryAdded(entry: NotificationEntry) {
|
||||
interactions[entry.key] = false
|
||||
|
||||
Reference in New Issue
Block a user