From eef0adc6f9039ccf6baa7b807638c0880185732e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 2 Sep 2025 18:30:47 -0400 Subject: [PATCH] Resets streaming url check if offline and entering a chat of that streaming --- .../nip53LiveActivities/LiveActivityChannelScreen.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/publicChannels/nip53LiveActivities/LiveActivityChannelScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/publicChannels/nip53LiveActivities/LiveActivityChannelScreen.kt index 03d052d8d..4db210440 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/publicChannels/nip53LiveActivities/LiveActivityChannelScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/publicChannels/nip53LiveActivities/LiveActivityChannelScreen.kt @@ -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) } },