Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ constructor(
}

internal var previousNotificationType: NotificationType = NotificationType.GENERAL
private var previousSessionId: String = ""

init {
CoroutineScope(backgroundDispatcher).launch {
Expand Down Expand Up @@ -171,6 +172,10 @@ constructor(

private suspend fun notifySubscribers(sessionId: String, type: NotificationType) {
previousNotificationType = type
if (previousSessionId == sessionId) {
return
}
previousSessionId = sessionId
FirebaseSessionsDependencies.getRegisteredSubscribers().values.forEach { subscriber ->
// Notify subscribers, regardless of sampling and data collection state
subscriber.onSessionChanged(SessionSubscriber.SessionDetails(sessionId))
Expand Down
Loading