mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 21:26:18 +02:00
Resets streaming url check if offline and entering a chat of that streaming
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user