Skip to content

Commit

Permalink
Fixed thread handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Grieser committed Jan 8, 2025
1 parent 4c53f4c commit 53a1e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ async def post_opsgenie_alert(opsgenie_token: str, channel: Channel, user: User,
log_error(f"Failed to send alert for message {ts} in channel #{channel.name} by user @{user.name}: {e}")

async def handle_thread_response(app: AsyncApp, event: dict, channel: Channel, user_id: str, thread_ts: str):
key = (channel.name, thread_ts)
key = (channel.id, thread_ts)
if key in scheduled_messages and scheduled_messages[key].user_id != user_id:
message_user_id = scheduled_messages[key].user_id
message_user = await get_user_by_id(app, message_user_id)
Expand Down

0 comments on commit 53a1e32

Please sign in to comment.