diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-12 15:19:02 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-12 15:19:02 -0500 |
| commit | ececa97d9ee6a435f81756bc25e25ed80285d20b (patch) | |
| tree | 2bd48173352962fb505d87541815fdabfab98c86 /server/channel/channel.go | |
| parent | 6edb15c2e8012e963c6f238c9177bdef06a9d651 (diff) | |
InfoFor
Diffstat (limited to 'server/channel/channel.go')
| -rw-r--r-- | server/channel/channel.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/channel/channel.go b/server/channel/channel.go index c4d2000..6ef21ba 100644 --- a/server/channel/channel.go +++ b/server/channel/channel.go @@ -102,7 +102,7 @@ func (c *Channel) NameFor(uid string) string { } u := c.store.world.GetObject(member) if u != nil { - members = append(members, u.GetInfo().Fields[""]) + members = append(members, u.InfoFor(uid).Fields[""]) } } sort.Strings(members) @@ -223,16 +223,12 @@ func (c *Channel) Kind() string { } } -func (c *Channel) GetInfoFor(uid string) proto.Object { +func (c *Channel) InfoFor(uid string) proto.Object { return proto.Object { c.Kind(), c.id, map[string]string {"": c.NameFor(uid)}, } } -func (c *Channel) GetInfo() proto.Object { - return c.GetInfoFor("") -} - func (t Tombstone) GetInfo() proto.Object { return proto.Object { "gone", "", map[string]string {"": t.name, "kind": "channel"}, |
