[feat] Add LiveStreaming Support #5691

Merged
neb-b merged 35 commits from feat/go-live into master 2021-03-23 00:48:10 +01:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 2ac5ad0201 - Show all commits

View file

@ -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}

View file

@ -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);