Skip to content

Commit

Permalink
make tmplGetChannel return threads too
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjh-bst committed Jul 20, 2024
1 parent b9dabf9 commit c31c466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/templates/context_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ func (c *Context) tmplGetChannel(channel interface{}) (*CtxChannel, error) {
return nil, nil // dont send an error , a nil output would indicate invalid/unknown channel
}

cstate := c.GS.GetChannel(cID)
cstate := c.GS.GetChannelOrThread(cID)

if cstate == nil {
return nil, errors.New("channel not in state")
Expand Down

0 comments on commit c31c466

Please sign in to comment.