Skip to content

Commit

Permalink
Releasing Flows if not subscribed anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jul 30, 2024
1 parent a03a11c commit 0258c5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class AccountViewModel(
}.flowOn(Dispatchers.Default)
.stateIn(
viewModelScope,
SharingStarted.Eagerly,
SharingStarted.WhileSubscribed(10000, 10000),
NoteComposeReportState(),
).also {
noteIsHiddenFlows.put(note, it)
Expand All @@ -334,7 +334,7 @@ class AccountViewModel(
.map { it.note.relays.size > 3 }
.stateIn(
viewModelScope,
SharingStarted.Eagerly,
SharingStarted.WhileSubscribed(10000, 10000),
note.relays.size > 3,
).also {
noteMustShowExpandButtonFlows.put(note, it)
Expand Down

0 comments on commit 0258c5a

Please sign in to comment.