fix: slack linkback unfurls (#2079)

This commit is contained in:
Henit Chobisa
2025-01-02 15:38:27 +05:30
committed by GitHub
parent bfb6aaa1d9
commit 5cd40d2e14
2 changed files with 6 additions and 2 deletions

View File

@@ -179,7 +179,8 @@ export class SlackService {
channelId: string,
threadTs: string,
message: string | { text?: string; blocks?: any[] },
metadata?: any
metadata?: any,
unfurlLinks = true
): Promise<SlackMessageResponse> {
try {
const payload =
@@ -189,6 +190,7 @@ export class SlackService {
thread_ts: threadTs,
metadata: metadata,
text: message,
unfurl_links: unfurlLinks,
}
: {
channel: channelId,
@@ -197,6 +199,7 @@ export class SlackService {
event_type: "issue",
event_payload: metadata,
},
unfurl_links: unfurlLinks,
...message,
};

View File

@@ -47,7 +47,8 @@ export const handleViewSubmission = async (data: TViewSubmissionPayload) => {
metadata.entityPayload.channel.id,
metadata.entityPayload.message?.ts,
linkBack,
issue
issue,
false
);
if (parsedData.enableThreadSync && res.ok) {