Skip to content

Commit

Permalink
fix is_no_mention_thread with correct bool comparion
Browse files Browse the repository at this point in the history
  • Loading branch information
maxshine authored Jan 9, 2024
1 parent 83a366d commit 84615cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/slack_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def find_parent_message(

def is_no_mention_thread(context: BoltContext, parent_message: dict) -> bool:
parent_message_text = parent_message.get("text", "")
return f"<@{context.bot_user_id}>" in parent_message_text
return f"<@{context.bot_user_id}>" not in parent_message_text


def build_thread_replies_as_combined_text(
Expand Down

0 comments on commit 84615cd

Please sign in to comment.