From c31c466c3e5d1ba9b1ff146a7e4a303b5ea36157 Mon Sep 17 00:00:00 2001 From: Ashish Jhanwar Date: Sat, 20 Jul 2024 23:09:10 +0530 Subject: [PATCH] make tmplGetChannel return threads too --- common/templates/context_funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/templates/context_funcs.go b/common/templates/context_funcs.go index 8ff0a790ce..826ed95d65 100644 --- a/common/templates/context_funcs.go +++ b/common/templates/context_funcs.go @@ -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")