diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-21 23:31:00 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | cfbe97d9a476eb543498ad13547a023ace23dd17 (patch) | |
tree | e5ae9178adf185897fb82a78522182cecda32a05 /slack/slack_thread.py | |
parent | 9e99c1d54eec2ab49a1a6a749bec1def8d182927 (diff) | |
download | wee-slack-cfbe97d9a476eb543498ad13547a023ace23dd17.tar.gz |
Make conversations.name not async
This means a lot of methods don't have to be async. It's especially
useful for the next commit adding conversations completions.
Diffstat (limited to 'slack/slack_thread.py')
-rw-r--r-- | slack/slack_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/slack_thread.py b/slack/slack_thread.py index 3a96789..38f0ac2 100644 --- a/slack/slack_thread.py +++ b/slack/slack_thread.py @@ -47,8 +47,8 @@ class SlackThread(SlackBuffer): def last_read(self) -> Optional[SlackTs]: return self.parent.last_read - async def get_name_and_buffer_props(self) -> Tuple[str, Dict[str, str]]: - conversation_name = await self.parent.conversation.name_with_prefix("full_name") + def get_name_and_buffer_props(self) -> Tuple[str, Dict[str, str]]: + conversation_name = self.parent.conversation.name_with_prefix("full_name") name = f"{conversation_name}.${self.parent.hash}" short_name = f" ${self.parent.hash}" |