summaryrefslogtreecommitdiff
path: root/server/channel/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-09 16:17:21 -0500
committercitrons <citrons@mondecitronne.com>2025-06-09 16:17:21 -0500
commitde6bd8a7c9b12524e3c127605bd7e485d906429d (patch)
treec08dc3cc2aa1d4557f4d6513122d7a732c403f52 /server/channel/command.go
parentbcab4b13e119b8f2e821af238e18dab34a88f754 (diff)
exclude sender name from DM name
Diffstat (limited to 'server/channel/command.go')
-rw-r--r--server/channel/command.go5
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)