3
0

Add missing context for channel lookup

This commit is contained in:
Denis Arh
2019-10-31 16:58:33 +01:00
parent 7a75c64211
commit ea68306872

View File

@@ -895,7 +895,7 @@ func (svc message) findChannelByID(channelID uint64) (ch *types.Channel, err err
mm types.ChannelMemberSet
)
if ch, err = svc.channel.FindByID(channelID); err != nil {
if ch, err = svc.channel.With(svc.ctx).FindByID(channelID); err != nil {
return nil, err
} else if mm, err = svc.cmember.Find(types.ChannelMemberFilterChannels(ch.ID)); err != nil {
return nil, err