Skip to content

Commit a431399

Browse files
committed
Revert "address nits"
This reverts commit d5e24b0.
1 parent a86659f commit a431399

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/onyx/connectors/slack/connector.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ def thread_to_doc(
255255
def default_msg_filter(message: MessageType) -> bool:
256256
# Don't keep messages from bots
257257
if message.get("bot_id") or message.get("app_id"):
258-
return message.get("bot_profile", {}).get("name") != "DanswerBot Testing"
258+
bot_profile_name = message.get("bot_profile", {}).get("name")
259+
print(f"bot_profile_name: {bot_profile_name}")
260+
if bot_profile_name == "DanswerBot Testing":
261+
return False
262+
return True
259263

260264
# Uninformative
261265
if message.get("subtype", "") in _DISALLOWED_MSG_SUBTYPES:

0 commit comments

Comments
 (0)