diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-09 16:17:21 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-09 16:17:21 -0500 |
| commit | de6bd8a7c9b12524e3c127605bd7e485d906429d (patch) | |
| tree | c08dc3cc2aa1d4557f4d6513122d7a732c403f52 /server/channel/command.go | |
| parent | bcab4b13e119b8f2e821af238e18dab34a88f754 (diff) | |
exclude sender name from DM name
Diffstat (limited to 'server/channel/command.go')
| -rw-r--r-- | server/channel/command.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/channel/command.go b/server/channel/command.go index c4eb13b..3cbedab 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -48,9 +48,12 @@ func (c *Channel) SendRequest(r session.Request) { m.Fields["f"] = r.From.UserId r.Reply(proto.NewCmd("p", c.id, c.Put(m))) + case "i": + r.Reply(proto.NewCmd("i", "", c.GetInfoFor(r.From.UserId))) + case "s": r.From.Subscribe(&c.Stream) - r.Reply(proto.NewCmd("i", "", c.GetInfo())) + r.Reply(proto.NewCmd("i", "", c.GetInfoFor(r.From.UserId))) case "u": r.From.Unsubscribe(&c.Stream) |
