mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 04:46:34 +02:00
Don't invalidate data on channels if it is already invalidating
This commit is contained in:
@@ -197,7 +197,7 @@ fun ChannelScreen(
|
|||||||
|
|
||||||
LaunchedEffect(Unit) {
|
LaunchedEffect(Unit) {
|
||||||
NostrChannelDataSource.start()
|
NostrChannelDataSource.start()
|
||||||
feedViewModel.invalidateData()
|
feedViewModel.invalidateData(true)
|
||||||
|
|
||||||
launch(Dispatchers.IO) {
|
launch(Dispatchers.IO) {
|
||||||
newPostModel.imageUploadingError.collect { error ->
|
newPostModel.imageUploadingError.collect { error ->
|
||||||
@@ -213,7 +213,7 @@ fun ChannelScreen(
|
|||||||
if (event == Lifecycle.Event.ON_RESUME) {
|
if (event == Lifecycle.Event.ON_RESUME) {
|
||||||
println("Channel Start")
|
println("Channel Start")
|
||||||
NostrChannelDataSource.start()
|
NostrChannelDataSource.start()
|
||||||
feedViewModel.invalidateData()
|
feedViewModel.invalidateData(true)
|
||||||
}
|
}
|
||||||
if (event == Lifecycle.Event.ON_PAUSE) {
|
if (event == Lifecycle.Event.ON_PAUSE) {
|
||||||
println("Channel Stop")
|
println("Channel Stop")
|
||||||
|
Reference in New Issue
Block a user