Skip to content

Conversation

@rzumer
Copy link

@rzumer rzumer commented Oct 12, 2023

In my opinion there is no reason for the bot to be replying to a message sent in a thread directly in the channel. replyInThread() is not adequate because it always creates a new thread if there isn't one already (plus it is annoying to use in conjunction with other drivers that don't have that function).

Keeping things simple, set the thread when building the payload for the reply. If using replyInThread(). This also reverts botman/botman#328 since the thread ID will be overridden in buildServicePayload() if it already exists anyway.

Applying unrelated StyleCI diff in the same commit.

@rzumer rzumer force-pushed the reply-in-existing-threads branch from c1e2a14 to 08859c5 Compare October 12, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant