1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-26 01:00:20 +02:00

check livestream visibility in homepage event handler

This commit is contained in:
zafer 2024-06-21 23:11:32 +03:00
parent c6c685531f
commit 239d4d93ec

View File

@ -217,7 +217,7 @@ defmodule AlgoraWeb.HomeLive do
@impl true
def handle_info(
{Library, %Library.Events.LivestreamStarted{video: video}},
{Library, %Library.Events.LivestreamStarted{video: %{visibility: :public} = video}},
%{assigns: %{livestream: nil}} = socket
) do
send_update(PlayerComponent, %{