3
0

Subscribe user to the channel he just created

This commit is contained in:
Denis Arh
2018-09-03 08:27:37 +02:00
parent 4f6bf888bb
commit 5befc50a95
@@ -64,6 +64,11 @@ func (s *Session) channelCreate(ctx context.Context, p *incoming.ChannelCreate)
return err
}
// Explicitly subscribe to newly created channel
s.subs.Add(uint64toa(ch.ID))
// @todo this should go over all user's sessons and subscribe there as well
pl := payloadFromChannel(ch)
if ch.Type == types.ChannelTypePublic {