aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_workspace.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r--slack/slack_workspace.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 286f5c7..0f9ddfb 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -445,16 +445,9 @@ class SlackWorkspace:
if self._ws is None:
raise SlackError(self, "is_connected is True while _ws is None")
- if isinstance(buffer, SlackConversation):
- conversation_id = buffer.id
- elif isinstance(buffer, SlackThread):
- conversation_id = buffer.parent.conversation.id
- else:
- raise NotImplementedError(f"Unknown buffer type: {type(buffer)}")
-
msg = {
"type": "user_typing",
- "channel": conversation_id,
+ "channel": buffer.conversation.id,
}
if isinstance(buffer, SlackThread):
msg["thread_ts"] = buffer.parent.ts