From e15198ff1723a017874a8c7f28864a2c4ddc8666 Mon Sep 17 00:00:00 2001 From: Dennis R Kennetz <38996870+drkennetz@users.noreply.github.com> Date: Sat, 11 Mar 2023 20:55:06 -0600 Subject: [PATCH] removed user from unique key for channel threads (#39) --- src/slack/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slack/middleware.go b/src/slack/middleware.go index c7df4f6..b3ae8dc 100644 --- a/src/slack/middleware.go +++ b/src/slack/middleware.go @@ -52,7 +52,7 @@ func middlewareAppMentionEvent(evt *socketmode.Event, client *socketmode.Client, ev.ThreadTimeStamp = ev.TimeStamp } // found a unique way to identify a thread - timestampUserChannel := ev.ThreadTimeStamp + ev.User + ev.Channel + timestampUserChannel := ev.ThreadTimeStamp + ev.Channel log.Printf("timestamp: %v\n", ev.TimeStamp) log.Printf("thread_timestamp: %v\n", ev.ThreadTimeStamp) convo.UpdateConversation(timestampUserChannel, ev.Text)