diff --git a/ui/lib/ui_web/live/morse_live.ex b/ui/lib/ui_web/live/morse_live.ex index 2632ce4..20ba153 100644 --- a/ui/lib/ui_web/live/morse_live.ex +++ b/ui/lib/ui_web/live/morse_live.ex @@ -13,7 +13,7 @@ defmodule UiWeb.MorseLive do end def handle_event("toggle_morse", _value, %{assigns: %{ip: ip}} = socket) do - if Morse.Server.in_progress?() do + if Morse.Server.in_progress?() and ip != "127.0.0.1" do spawn fn -> Ui.TelegramBot.message("#{ip} pressed the button!") end end Morse.Server.toggle_morse()