Skip to content

Commit

Permalink
removed user from unique key for channel threads (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
drkennetz authored Mar 12, 2023
1 parent 9a5c135 commit e15198f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slack/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e15198f

Please sign in to comment.