Fix gamemaster roll sharing.

This commit is contained in:
Andres Gomez, Thomas (ITDV RL) 2025-01-21 10:31:23 +01:00
parent 86b8de9dcd
commit 42d865c4e3

View file

@ -36,7 +36,9 @@ import com.pixelized.rplexicon.utilitary.extentions.toLabel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import javax.inject.Inject
@ -653,7 +655,7 @@ class SummaryFactory @Inject constructor(
val data = HeaderStatStruct()
characterSheetRepository.data
.combine(throwRepository.getThrows()) { sheets, fire ->
data.sheets = sheets
data.sheets = sheets.filter { entry -> entry.value.active }
data.fires = fire.details
}
.collect {