diff options
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"}, |
