Fix enabled on embed

This commit is contained in:
Alex
2024-06-12 19:45:18 +02:00
parent 46504d117f
commit 11b674bba4
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
- Fix presenter layout with embeds when messages are hidden
- Fix missing stream for form submits
- Fix unknown locales
- Fix embeds when updated
- Add validation to avoid user to self assign as a facilitator
- Toggle for message reactions is replaced with toggle for message and global reactions
- Improve embed integration in presenter view

View File

@@ -179,7 +179,7 @@ defmodule ClaperWeb.EventLive.Presenter do
@impl true
def handle_info({:embed_updated, embed}, socket) do
if embed.active do
if embed.enabled do
{:noreply,
socket
|> update(:current_embed, fn _current_embed -> embed end)}