aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-09 18:51:05 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 13:01:40 +0100
commit32a4739bcd9fd3ef289b0f9c8bb0b4248d9444b6 (patch)
treea35af16926b13190391c821d32944593b91e7628 /slack/slack_conversation.py
parent1b495a4b9ab7742c50de247efa9101b1eac08ef7 (diff)
downloadwee-slack-32a4739bcd9fd3ef289b0f9c8bb0b4248d9444b6.tar.gz
Add an option to leave the channel when a buffer is closed
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index a87cb3f..1da093d 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -740,6 +740,8 @@ class SlackConversation(SlackBuffer):
if update_server:
if self.type in ["im", "mpim"]:
await self._api.conversations_close(self)
+ else:
+ await self._api.conversations_leave(self)
_T = TypeVar("_T", bound=SlackConversation)