diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-15 23:15:54 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | fdc62f23df3eb715e921fc6f32d3a39aaf210a4e (patch) | |
tree | 45ffefd52652a3c67850d3cc25b0285a588b372e /slack/slack_workspace.py | |
parent | 0e4ac01dfd41a15eeb67de08ca788e82d3736a6f (diff) | |
download | wee-slack-fdc62f23df3eb715e921fc6f32d3a39aaf210a4e.tar.gz |
Show conversation topic in buffer title
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 8c0f9a6..eb26b8e 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -375,6 +375,9 @@ class SlackWorkspace: elif "subtype" in data and data["subtype"] == "message_replied": await channel.change_message(data) else: + if "subtype" in data and data["subtype"] == "channel_topic": + await channel.set_topic(data["topic"]) + message = SlackMessage(channel, data) await channel.add_new_message(message) elif data["type"] == "reaction_added" and data["item"]["type"] == "message": |