Skip to content

Commit

Permalink
Remove a bit more complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed Jun 13, 2021
1 parent c80f479 commit a4be161
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mmpy_bot/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ def reply_to(
message=response,
file_paths=file_paths,
props=props,
ephemeral_user_id=message.user_id if ephemeral else None
)
if ephemeral:
direct_args["ephemeral_user_id"] = message.user_id

return self.direct_message(**direct_args)

Expand All @@ -143,11 +142,9 @@ def reply_to(
root_id=message.reply_id,
file_paths=file_paths,
props=props,
ephemeral_user_id=message.user_id if ephemeral else None
)

if ephemeral:
reply_args["ephemeral_user_id"] = message.user_id

return self.create_post(**reply_args)

def direct_message(
Expand Down

0 comments on commit a4be161

Please sign in to comment.