diff options
| author | raven <citrons@mondecitronne.com> | 2025-10-22 15:48:40 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2025-10-22 16:23:32 -0500 |
| commit | 4b54a1d11fd0fa355b244637612a3fd0af18c60c (patch) | |
| tree | 43a2d2d1feff2caf40a2e33b6ac4d61185708ab3 /server/channel/command.go | |
| parent | 9126f2329aa21645e0d5622b0eeed402273efa95 (diff) | |
events generated from other clients on the same account
Diffstat (limited to 'server/channel/command.go')
| -rw-r--r-- | server/channel/command.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/channel/command.go b/server/channel/command.go index 04e45a2..92ae2cc 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -46,7 +46,7 @@ func (c *Channel) SendRequest(r session.Request) { } m.Fields["f"] = r.From.UserId - r.Reply(proto.NewCmd("p", c.id, c.Put(m))) + r.Reply(proto.NewCmd("p", c.id, c.Put(m, r.From))) case "i": r.Reply(proto.NewCmd("i", "", c.InfoFor(r.From.UserId))) @@ -66,6 +66,7 @@ func (c *Channel) SendRequest(r session.Request) { r.Reply(err.Cmd()) } else { r.ReplyOk() + u.PrivateStream.Event(proto.NewCmd("join", c.id)) } case "leave": @@ -75,6 +76,7 @@ func (c *Channel) SendRequest(r session.Request) { r.Reply(err.Cmd()) } else { r.ReplyOk() + u.PrivateStream.Event(proto.NewCmd("leave", c.id)) } case "delete": @@ -249,7 +251,7 @@ func (c *Channel) SendRequest(r session.Request) { return } c.SetMembership(id, new) - c.Put(o) + c.Put(o, r.From) i := new.GetInfo() i.Fields[""] = id |
