Skip to content

Commit

Permalink
rename notif uuid prefix const
Browse files Browse the repository at this point in the history
  • Loading branch information
crc-32 committed Jan 6, 2025
1 parent 77323c5 commit ec9a372
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import org.koin.core.component.inject

class NotificationActionHandler(scope: CoroutineScope): KoinComponent, CobbleHandler {
companion object {
const val notificationUuidPrefix = "cafecafe"
const val NOTIFICATION_UUID_PREFIX = "cafecafe"
}
private val timelineActionManager: TimelineActionManager by inject()
private val notificationActionExecutor: PlatformNotificationActionExecutor by inject()

private val notificationActionFlow = timelineActionManager.actionFlow.filter {
val (action, _) = it
action.itemID.get().toString().startsWith(notificationUuidPrefix)
action.itemID.get().toString().startsWith(NOTIFICATION_UUID_PREFIX)
}

init {
Expand Down

0 comments on commit ec9a372

Please sign in to comment.