Close local preview when its publication ends
This commit is contained in:
1 parent
af580d9d90
commit
eee67ac9d9
1 file changed
+1
@@ -79,6 +79,7 @@ fun StreamScreen(channelId: String, channelName: String, onBack: () -> Unit) {
|
||||
}
|
||||
}
|
||||
LaunchedEffect(sources, local?.id, local?.phase) {
|
||||
if (local != null && !local.ongoing && selected?.self == true) selected = null
|
||||
if (local?.phase == StreamPhase.LIVE && previewedSession != local.id) sources.firstOrNull { it.self }?.let {
|
||||
selected = it; previewedSession = local.id
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user