Resets streaming url check if offline and entering a chat of that streaming

This commit is contained in:
Vitor Pamplona
2025-09-02 18:30:47 -04:00
parent 480ef63aed
commit eef0adc6f9

View File

@@ -23,8 +23,10 @@ package com.vitorpamplona.amethyst.ui.screen.loggedIn.chats.publicChannels.nip53
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import com.vitorpamplona.amethyst.model.Note
import com.vitorpamplona.amethyst.service.OnlineChecker
import com.vitorpamplona.amethyst.ui.layouts.DisappearingScaffold
import com.vitorpamplona.amethyst.ui.navigation.navs.INav
import com.vitorpamplona.amethyst.ui.note.LoadLiveActivityChannel
@@ -45,6 +47,11 @@ fun LiveActivityChannelScreen(
isInvertedLayout = true,
topBar = {
LoadLiveActivityChannel(channelId, accountViewModel) {
LaunchedEffect(it.info) {
it.info?.streaming()?.let {
OnlineChecker.resetIfOfflineToRetry(it)
}
}
LiveActivityTopBar(it, accountViewModel, nav)
}
},