aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slack/slack_conversation.py4
-rw-r--r--slack/slack_workspace.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index f93dc7b..6e9aa50 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -307,7 +307,7 @@ class SlackConversation:
self, pages=-1 if load_all else 1
)
self._members = members_response["members"]
- await self.workspace.users.initialize_items(self._members)
+ self.workspace.users.initialize_items(self._members)
return self._members
async def fill_history(self):
@@ -325,7 +325,7 @@ class SlackConversation:
self._messages[message.ts] = message
sender_user_ids = [m.sender_user_id for m in messages if m.sender_user_id]
- await self.workspace.users.initialize_items(sender_user_ids)
+ self.workspace.users.initialize_items(sender_user_ids)
await gather(*(message.render() for message in messages))
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 4b045e1..28b9b4b 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -67,7 +67,7 @@ class SlackItem(
self[key] = create_task(self._create_item(key))
return self[key]
- async def initialize_items(self, item_ids: Iterable[str]):
+ def initialize_items(self, item_ids: Iterable[str]):
item_ids_to_init = set(item_id for item_id in item_ids if item_id not in self)
if item_ids_to_init:
items_info_task = create_task(self._fetch_items_info(item_ids_to_init))
@@ -218,7 +218,7 @@ class SlackWorkspace:
"public_channel,private_channel,mpim,im"
)
channels = users_conversations_response["channels"]
- await self.conversations.initialize_items(channel["id"] for channel in channels)
+ self.conversations.initialize_items(channel["id"] for channel in channels)
for channel in channels:
conversation = await self.conversations[channel["id"]]
run_async(conversation.open_if_open())