Skip to content

Use parent if it is set on a Message to thread - #1779

Open
tomwardill-payoneer wants to merge 1 commit into
errbotio:masterfrom
tomwardill-payoneer:fix-slack-threading
Open

Use parent if it is set on a Message to thread#1779
tomwardill-payoneer wants to merge 1 commit into
errbotio:masterfrom
tomwardill-payoneer:fix-slack-threading

Conversation

@tomwardill-payoneer

Copy link
Copy Markdown

The Message class has a parent attribute.
The slack backend supports threading a reply to a command based on this, however the errbot core drops it when it rebuilds the message into a string.

Ensure that the parent attribute is set and passed on, so that the backends can use it if available.

Allows threading to happen via:

yield Message("Some string", parent=msg)

rather than requiring DIVERT_TO_THREAD to be set for each command.

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