Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
wrap promise response in set timeout to keep local state in sync (#2531)
André Rusakow0361443fc345
diff --git a/web/components/config/EditLogo.tsx b/web/components/config/EditLogo.tsxindex e51007964e..c566b6433f 100644--- a/web/components/config/EditLogo.tsx+++ b/web/components/config/EditLogo.tsx@@ -71,7 +71,7 @@ export const EditLogo: FC = () => {getBase64(file, (url: string) => {setlogoUrl(url);- return res();+ setTimeout(() => res(), 100);});});};@@ -80,7 +80,6 @@ export const EditLogo: FC = () => {const handleLogoUpdate = async () => {if (logoUrl !== currentLogo) {setSubmitStatus(createInputStatus(STATUS_PROCESSING));-await postConfigUpdateToAPI({apiPath,data: { value: logoUrl },diff --git a/web/utils/images.ts b/web/utils/images.tsindex 97ea19fcb3..06dfd920ef 100644--- a/web/utils/images.ts+++ b/web/utils/images.ts@@ -1,5 +1,3 @@-import { RcFile } from 'antd/lib/upload';-export const MAX_IMAGE_FILESIZE = 2097152;export const ACCEPTED_IMAGE_TYPES = ['image/png', 'image/jpeg', 'image/gif'];