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:
parent
c6c685531f
commit
239d4d93ec
@ -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, %{
|
||||
|
Loading…
Reference in New Issue
Block a user