mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 18:56:49 +02:00
Releasing Flows if not subscribed anymore.
This commit is contained in:
@@ -317,7 +317,7 @@ class AccountViewModel(
|
|||||||
}.flowOn(Dispatchers.Default)
|
}.flowOn(Dispatchers.Default)
|
||||||
.stateIn(
|
.stateIn(
|
||||||
viewModelScope,
|
viewModelScope,
|
||||||
SharingStarted.Eagerly,
|
SharingStarted.WhileSubscribed(10000, 10000),
|
||||||
NoteComposeReportState(),
|
NoteComposeReportState(),
|
||||||
).also {
|
).also {
|
||||||
noteIsHiddenFlows.put(note, it)
|
noteIsHiddenFlows.put(note, it)
|
||||||
@@ -334,7 +334,7 @@ class AccountViewModel(
|
|||||||
.map { it.note.relays.size > 3 }
|
.map { it.note.relays.size > 3 }
|
||||||
.stateIn(
|
.stateIn(
|
||||||
viewModelScope,
|
viewModelScope,
|
||||||
SharingStarted.Eagerly,
|
SharingStarted.WhileSubscribed(10000, 10000),
|
||||||
note.relays.size > 3,
|
note.relays.size > 3,
|
||||||
).also {
|
).also {
|
||||||
noteMustShowExpandButtonFlows.put(note, it)
|
noteMustShowExpandButtonFlows.put(note, it)
|
||||||
|
Reference in New Issue
Block a user