[feat] Add LiveStreaming Support #5691
2 changed files with 10 additions and 2 deletions
|
@ -314,6 +314,11 @@ function PublishForm(props: Props) {
|
|||
runPublish = true;
|
||||
}
|
||||
|
||||
// (Try to) Prevent an anon livestream claim
|
||||
if (mode === PUBLISH_MODES.LIVESTREAM) {
|
||||
updatePublishForm({ channel: activeChannelName });
|
||||
}
|
||||
|
||||
if (runPublish) {
|
||||
if (enablePublishPreview) {
|
||||
setPreviewing(true);
|
||||
|
@ -339,7 +344,10 @@ function PublishForm(props: Props) {
|
|||
// Editing claim uri
|
||||
return (
|
||||
<div className="card-stack">
|
||||
<ChannelSelect disabled={disabled} />
|
||||
<ChannelSelect
|
||||
hideAnon={mode === PUBLISH_MODES.LIVESTREAM}
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
||||
<PublishFile
|
||||
uri={uri}
|
||||
|
|
|
@ -74,7 +74,7 @@ export default function CreatorDashboardPage(props: Props) {
|
|||
})
|
||||
.then((res) => {
|
||||
if (res && res.items && res.items.length > 0) {
|
||||
const claim = res.items[0];
|
||||
const claim = res.items[res.items.length - 1];
|
||||
setLivestreamClaim(claim);
|
||||
} else {
|
||||
setIsFetching(false);
|
||||
|
|
Loading…
Add table
Reference in a new issue