From c80a96e0a06916cdc80a1a9730f7b4fde937386e Mon Sep 17 00:00:00 2001 From: SoggySaussages Date: Wed, 12 Jun 2024 02:31:34 -0700 Subject: [PATCH] cc/threads: fix editThread invitable Signed-off-by: SoggySaussages --- common/templates/context_funcs.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/templates/context_funcs.go b/common/templates/context_funcs.go index 1485beac38..27ead08e56 100644 --- a/common/templates/context_funcs.go +++ b/common/templates/context_funcs.go @@ -1820,10 +1820,8 @@ func processThreadArgs(newThread bool, parent *dstate.ChannelState, values ...in case "invitable": val, ok := val.(bool) if ok { - if val { - invitable := val - c.Invitable = &invitable - } + invitable := val + c.Invitable = &invitable continue } return c, errors.New("'invitable' must be a boolean")