From 2111f328c1dc619be568e325ce7138c8e6e3b0b2 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 30 Dec 2025 20:06:25 +0300 Subject: =?UTF-8?q?=D0=BD=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/chat/chan.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/chat') diff --git a/internal/chat/chan.go b/internal/chat/chan.go index ae78bb6..bc2b70f 100644 --- a/internal/chat/chan.go +++ b/internal/chat/chan.go @@ -29,6 +29,12 @@ func (c *Channel) processEvent(ev any) { slog.Info("channel event", slog.String("channel", c.Name), slog.Any("event", ev)) for u := range c.Users { + if ev, ok := ev.(Message); ok { + if ev.User == u { + // Do not return user message to him + continue + } + } select { case u.Events <- ev: default: -- cgit v1.2.3