mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 20:08:36 +02:00
Fix slack link bug with non-thread messages
This commit is contained in:
parent
4e359bc731
commit
2bf38fa996
@ -29,9 +29,7 @@ def get_message_link(
|
||||
thread_ts = cast(str | None, event.get("thread_ts"))
|
||||
return (
|
||||
f"https://{workspace}.slack.com/archives/{channel_id}/p{message_ts_without_dot}"
|
||||
f"?thread_ts={thread_ts}"
|
||||
if thread_ts
|
||||
else ""
|
||||
+ (f"?thread_ts={thread_ts}" if thread_ts else "")
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user