From 53b6ec3880fb3018bd60db2412d3ab826319811b Mon Sep 17 00:00:00 2001 From: citrons Date: Tue, 27 May 2025 02:41:07 -0500 Subject: fix channel command --- server/channel/command.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/channel/command.go b/server/channel/command.go index 5e6c32c..af5ff16 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -36,12 +36,7 @@ func (c *Channel) SendRequest(r session.Request) { } m.Fields["f"] = r.From.UserId - err := c.Put(m) - if err != nil { - r.Reply(err.Cmd()) - return - } - r.Reply(proto.NewCmd("p", c.id, m)) + r.Reply(proto.NewCmd("p", c.id, c.Put(m))) case "s": r.From.Subscribe(&c.Stream) -- cgit v1.2.3