Skip to content

Commit a599538

Browse files
authored
chore(slack): Remove redundant thread ID generation (#1910)
1 parent 5cccbfb commit a599538

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

backend/chainlit/slack/app.py

-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import re
44
import uuid
5-
from datetime import datetime
65
from functools import partial
76
from typing import Dict, List, Optional, Union
87

@@ -339,12 +338,6 @@ async def handle_app_mentions(event, say):
339338

340339
@slack_app.event("message")
341340
async def handle_message(message, say):
342-
thread_id = str(
343-
uuid.uuid5(
344-
uuid.NAMESPACE_DNS,
345-
message["channel"] + datetime.today().strftime("%Y-%m-%d"),
346-
)
347-
)
348341
thread_ts = message.get("thread_ts", message["ts"])
349342
thread_id = str(uuid.uuid5(uuid.NAMESPACE_DNS, thread_ts))
350343

0 commit comments

Comments
 (0)